diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-28 15:52:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-28 15:58:40 +0000 |
commit | a08fb657ec936f2785166d38e4f85682c4ba9aa1 (patch) | |
tree | f6f997025d8b3331e7d982f7698bbb1949ae9fc2 /sw | |
parent | 4aa17570a75097741f78b03ad9dff0688fbed513 (diff) |
log some more useful information on invalid sprms
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index dfc04be245e9..801e6873b3c7 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -7388,7 +7388,9 @@ sal_uInt8* wwSprmParser::findSprmData(sal_uInt16 nId, sal_uInt8* pSprms, bool bValid = nSize <= nLen; - SAL_WARN_IF(!bValid, "sw.ww8", "sprm longer than remaining bytes, doc or parser is wrong"); + SAL_WARN_IF(!bValid, "sw.ww8", + "sprm 0x" << std::hex << nAktId << std::dec << " longer than remaining bytes, " << + nSize << " vs " << nLen << "doc or parser is wrong"); if (nAktId == nId && bValid) // Sprm found return pSprms + DistanceToData(nId); |