From b4286deec9bb63d2c36ca174ac6a9f2d37ee14a5 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 7 Feb 2011 17:31:00 +0100 Subject: [PATCH] WaE: format not a string literal and no format arguments --- automation/source/simplecm/simplecm.cxx | 2 +- extensions/source/logging/consolehandler.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx index 26c8d6af0585..0e51768361c5 100644 --- a/automation/source/simplecm/simplecm.cxx +++ b/automation/source/simplecm/simplecm.cxx @@ -45,7 +45,7 @@ void debug_printf( const char *chars ) static BOOL bPrint = (getenv("DEBUG") != NULL); if ( bPrint ) { - printf( chars ); + printf( "%c\n", chars ); fflush( stdout ); } } diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx index c095198900ef..6f0a6b4969da 100644 --- a/extensions/source/logging/consolehandler.cxx +++ b/extensions/source/logging/consolehandler.cxx @@ -250,9 +250,9 @@ namespace logging return sal_False; if ( _rRecord.Level >= m_nThreshold ) - fprintf( stderr, sEntry.getStr() ); + fprintf( stderr, "%s\n", sEntry.getStr() ); else - fprintf( stdout, sEntry.getStr() ); + fprintf( stdout, "%s\n", sEntry.getStr() ); return sal_True; }