diff options
author | Ron Yorston <rmy@tigress.co.uk> | 2015-03-12 20:18:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-03-12 20:18:51 +0100 |
commit | 8ec1ff350c28ae691ee80a001c7786f4ad8abe47 (patch) | |
tree | 9093ee5c37732277de017f1d38602e93950dccb2 /procps | |
parent | 53e9c51aded0af85c33d657143ed94c5151ba6f3 (diff) | |
download | busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.tar.gz busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.tar.bz2 busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.zip |
Use chomp to remove newlines
function old new delta
unix_do_one 548 540 -8
process_timer_stats 508 500 -8
process_irq_counts 532 524 -8
lpd_main 839 831 -8
hwclock_main 502 494 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-50) Total: -40 bytes
Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r-- | procps/powertop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/powertop.c b/procps/powertop.c index 18affacdd..1de5d329e 100644 --- a/procps/powertop.c +++ b/procps/powertop.c | |||
@@ -360,7 +360,7 @@ static void process_irq_counts(void) | |||
360 | } | 360 | } |
361 | 361 | ||
362 | name = p; | 362 | name = p; |
363 | strchrnul(name, '\n')[0] = '\0'; | 363 | chomp(p); |
364 | /* Save description of the interrupt */ | 364 | /* Save description of the interrupt */ |
365 | if (nr >= 20000) | 365 | if (nr >= 20000) |
366 | sprintf(irq_desc, " <kernel IPI> : %s", name); | 366 | sprintf(irq_desc, " <kernel IPI> : %s", name); |
@@ -470,7 +470,7 @@ static NOINLINE int process_timer_stats(void) | |||
470 | process = idx < 2 ? "[kernel module]" : "<kernel core>"; | 470 | process = idx < 2 ? "[kernel module]" : "<kernel core>"; |
471 | } | 471 | } |
472 | 472 | ||
473 | strchrnul(p, '\n')[0] = '\0'; | 473 | chomp(p); |
474 | 474 | ||
475 | // 46D\01136\0kondemand/1\0do_dbs_timer (delayed_work_timer_fn) | 475 | // 46D\01136\0kondemand/1\0do_dbs_timer (delayed_work_timer_fn) |
476 | // ^ ^ ^ | 476 | // ^ ^ ^ |