summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-07 17:31:00 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-07 17:33:10 +0100
commit1020364a2265ed696f6a40a3bef61c3bb72cfb08 (patch)
tree44cb1f4e86fa6dfba437848c9157741bcf084162
parentdfda11c7f9b8681b4ad427b25e7a3df9ba1e8a20 (diff)
WaE: format not a string literal and no format arguments
-rw-r--r--automation/source/simplecm/simplecm.cxx2
-rw-r--r--extensions/source/logging/consolehandler.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx
index ef770100d..80b388d74 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 9e51ca370..5cfac7e06 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;
}