diff options
author | Magnus Fromreide <magfr@lysator.liu.se> | 2012-06-16 18:14:54 +0200 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-06-22 09:10:34 -0700 |
commit | b981771f47f211e105f420c3afcc7a44bd88a652 (patch) | |
tree | e531d968fc382e778b6d3591c9871e8150a846db /src/main.cpp | |
parent | 8911406ca7377ddfb9291dc817f3b0b1f8ed280a (diff) | |
download | powertop-2.0-v2-b981771f47f211e105f420c3afcc7a44bd88a652.tar.gz |
Use printf, not sprintf, to print messages to stdout.
This undos the last printf->sprintf change from 8fd54ace.
Signed-off-by: Magnus Fromreide <magfr@lysator.liu.se>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |