diff options
author | Denys Vlasenko | 2013-11-29 16:45:45 +0100 |
---|---|---|
committer | Denys Vlasenko | 2013-11-29 16:45:45 +0100 |
commit | 327f550669a80d72f36bc9e4de619c163aa46eff (patch) | |
tree | d304092aeb06539085be1385ab9298876c414b44 /procps/top.c | |
parent | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (diff) | |
download | busybox-327f550669a80d72f36bc9e4de619c163aa46eff.zip busybox-327f550669a80d72f36bc9e4de619c163aa46eff.tar.gz |
Use unsigned printf/scanf conversion where more appropriate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c index 31f2a51..51f1c1a 100644 --- a/procps/top.c +++ b/procps/top.c @@ -677,7 +677,7 @@ static NOINLINE void display_process_list(int lines_rem, int scr_width) if (s->vsz >= 100000) sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); else - sprintf(vsz_str_buf, "%7ld", s->vsz); + sprintf(vsz_str_buf, "%7lu", s->vsz); /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ col = snprintf(line_buf, scr_width, "\n" "%5u%6u %-8.8s %s%s" FMT |