diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-24 12:32:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-25 11:51:00 +0200 |
commit | 6aa4d96f1290596e7e346573afb18756441c823d (patch) | |
tree | 0c942250418e341f5d2fc2d4ed795a5bcfe1b8cc /oox | |
parent | e18d8bf5cfdb12b75888c2ddd25a829cf5c66305 (diff) |
use SAL_WARN instead of printf for logging
Change-Id: Ic6134cae251b8096b720005b62ce282def6b7ac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136368
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/vmlexport.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 8ee5c28ed67a..236407677340 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -1009,21 +1009,23 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle& #if OSL_DEBUG_LEVEL > 0 const size_t opt_nProp_size(opt.nProp.size()); const sal_uInt8 opt_nProp_empty(0); - fprintf( stderr, "TODO VMLExport::Commit(), unimplemented id: %d, value: %" SAL_PRIuUINT32 ", data: [%zu, %p]\n", - nId, - opt.nPropValue, - opt_nProp_size, - 0 == opt_nProp_size ? &opt_nProp_empty : opt.nProp.data()); + SAL_WARN( "oox.vml", "TODO VMLExport::Commit(), unimplemented id: " << nId + << ", value: " << opt.nPropValue + << ", data: [" << opt_nProp_size << ", " + << (0 == opt_nProp_size ? &opt_nProp_empty : opt.nProp.data()) + << "]"); if ( opt.nProp.size() ) { const sal_uInt8 *pIt = opt.nProp.data(); - fprintf( stderr, " ( " ); + OStringBuffer buf; + buf.append( " ( " ); for ( int nCount = opt.nProp.size(); nCount; --nCount ) { - fprintf( stderr, "%02x ", *pIt ); + buf.append( static_cast<sal_Int32>(*pIt), 16 ).append(' '); ++pIt; } - fprintf( stderr, ")\n" ); + buf.append( ")" ); + SAL_WARN("oox.vml", std::string_view(buf)); } #endif break; |