libbb: reduce the overhead of single parameter bb_error_msg() calls
[oweals/busybox.git] / procps / powertop.c
index e70f5433ba25f778de17c43ef63b85788664eb52..d508b5f785dd97a5ac9b69b990b1b4c6fd2a3547 100644 (file)
@@ -657,7 +657,7 @@ static void show_timerstats(void)
                }
        } else {
                bb_putchar('\n');
-               bb_error_msg("no stats available; run as root or"
+               bb_simple_error_msg("no stats available; run as root or"
                                " enable the timer_stats module");
        }
 }
@@ -707,7 +707,7 @@ int powertop_main(int argc UNUSED_PARAM, char UNUSED_PARAM **argv)
 
        /* Print warning when we don't have superuser privileges */
        if (geteuid() != 0)
-               bb_error_msg("run as root to collect enough information");
+               bb_simple_error_msg("run as root to collect enough information");
 
        /* Get number of CPUs */
        G.total_cpus = get_cpu_count();