filter/source/msfilter/mstoolbar.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 9aa11d79ce424ec96111763849a0b4de3b440c3e
Author:     Dr. David Alan Gilbert <d...@treblig.org>
AuthorDate: Fri Oct 16 14:52:28 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Oct 16 20:26:46 2020 +0200

    msfilter: Fix 0x%d debug printfs
    
    Generally you want either %d or 0x%x, this had a few 0x%d debugs.
    
    Change-Id: Ibe55addd5efb18b17b958f96e53ca1441ae55720
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104440
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/filter/source/msfilter/mstoolbar.cxx 
b/filter/source/msfilter/mstoolbar.cxx
index 43d31aeccd25..fee6cae04c2d 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -211,9 +211,9 @@ void TBCHeader::Print( FILE* fp )
     indent_printf(fp,"  tbct 0x%x\n", static_cast< unsigned int >( tbct ));
     indent_printf(fp,"  bPriority 0x%x\n", bPriority );
     if ( width.get() )
-        indent_printf(fp,"  width 0x%d(0x%x)\n", *width, *width);
+        indent_printf(fp,"  width %d(0x%x)\n", *width, *width);
     if ( height.get() )
-        indent_printf(fp,"  height 0x%d(0x%x)\n", *height, *height);
+        indent_printf(fp,"  height %d(0x%x)\n", *height, *height);
 }
 #endif
 
@@ -698,16 +698,16 @@ void TBCCDData::Print( FILE* fp)
 {
     Indent a;
     indent_printf(fp,"[ 0x%x ] TBCCDData -- dump\n", nOffSet );
-    indent_printf(fp,"  cwstrItems items in wstrList 0x%d\n", cwstrItems);
+    indent_printf(fp,"  cwstrItems items in wstrList %d\n", cwstrItems);
     for ( sal_Int32 index=0; index < cwstrItems; ++index )
     {
         Indent b;
         indent_printf(fp, "  wstrList[%d] %s", static_cast< int >( index ), 
OUStringToOString( wstrList[index].getString(), RTL_TEXTENCODING_UTF8 
).getStr() );
     }
-    indent_printf(fp,"  cwstrMRU num most recently used string 0x%d item\n", 
cwstrMRU);
-    indent_printf(fp,"  iSel index of selected item 0x%d item\n", iSel);
-    indent_printf(fp,"  cLines num of suggested lines to display 0x%d", 
cLines);
-    indent_printf(fp,"  dxWidth width in pixels 0x%d", dxWidth);
+    indent_printf(fp,"  cwstrMRU num most recently used string %d item\n", 
cwstrMRU);
+    indent_printf(fp,"  iSel index of selected item %d item\n", iSel);
+    indent_printf(fp,"  cLines num of suggested lines to display %d", cLines);
+    indent_printf(fp,"  dxWidth width in pixels %d", dxWidth);
     indent_printf(fp,"  wstrEdit %s", OUStringToOString( wstrEdit.getString(), 
RTL_TEXTENCODING_UTF8 ).getStr() );
 }
 #endif
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to