diff options
author | Denys Vlasenko | 2013-09-06 12:53:14 +0200 |
---|---|---|
committer | Denys Vlasenko | 2013-09-06 12:53:14 +0200 |
commit | a407cf74cc43c3cc26168e259cee469a4787a76c (patch) | |
tree | 2306029e1ea7b957825b55e3728d23c886da58dd /procps/top.c | |
parent | d6ae4fb446daedfe3073d67be655942e9fa7eb18 (diff) | |
download | busybox-a407cf74cc43c3cc26168e259cee469a4787a76c.zip busybox-a407cf74cc43c3cc26168e259cee469a4787a76c.tar.gz |
Make smart_ulltoa return pointer to end (allows for code shink in callers)
function old new delta
smart_ulltoa5 405 408 +3
smart_ulltoa4 273 276 +3
list_table 1113 1114 +1
scale 36 34 -2
put_lu 55 53 -2
ulltoa6_and_space 19 14 -5
powertop_main 1470 1461 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/procps/top.c b/procps/top.c index abee698..a13a41c 100644 --- a/procps/top.c +++ b/procps/top.c @@ -847,8 +847,7 @@ static void display_topmem_header(int scr_width, int *lines_rem_p) static void ulltoa6_and_space(unsigned long long ul, char buf[6]) { /* see http://en.wikipedia.org/wiki/Tera */ - smart_ulltoa5(ul, buf, " mgtpezy"); - buf[5] = ' '; + smart_ulltoa5(ul, buf, " mgtpezy")[0] = '\0'; } static NOINLINE void display_topmem_process_list(int lines_rem, int scr_width) |