oox/source/export/vmlexport.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
New commits: commit 6aa4d96f1290596e7e346573afb18756441c823d Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jun 24 12:32:28 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Jun 25 11:51:00 2022 +0200 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.gran...@collabora.co.uk> 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;