From b981771f47f211e105f420c3afcc7a44bd88a652 Mon Sep 17 00:00:00 2001 From: Magnus Fromreide Date: Sat, 16 Jun 2012 18:14:54 +0200 Subject: Use printf, not sprintf, to print messages to stdout. This undos the last printf->sprintf change from 8fd54ace. Signed-off-by: Magnus Fromreide --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a499905..d8e2a47 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -231,7 +231,7 @@ void one_measurement(int seconds, char *workload) void out_of_memory() { reset_display(); - sprintf("%s...\n",_("PowerTOP is out of memory. PowerTOP is Aborting")); + printf("%s...\n",_("PowerTOP is out of memory. PowerTOP is Aborting")); abort(); } @@ -462,7 +462,7 @@ int main(int argc, char **argv) #ifndef DISABLE_NCURSES endwin(); #endif - sprintf("%s\n", _("Leaving PowerTOP")); + printf("%s\n", _("Leaving PowerTOP")); end_process_data(); clear_process_data(); -- cgit v1.2.3