diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-07 17:31:00 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-07 17:33:10 +0100 |
commit | b4286deec9bb63d2c36ca174ac6a9f2d37ee14a5 (patch) | |
tree | 72abb03cd0de8b71877fa25da750f5450d16a8bf | |
parent | ba11d549dca2a04a220b59aaf9223ee8f7043da0 (diff) |
WaE: format not a string literal and no format arguments
-rw-r--r-- | automation/source/simplecm/simplecm.cxx | 2 | ||||
-rw-r--r-- | 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; } |