diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pgrep.c | 4 | ||||
-rw-r--r-- | procps/top.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c index 8daf5b28a..1c7c7c48b 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -65,9 +65,9 @@ static void act(unsigned pid, char *cmd, int signo) | |||
65 | { | 65 | { |
66 | if (pgrep) { | 66 | if (pgrep) { |
67 | if (option_mask32 & (1 << OPTBIT_L)) /* OPT_LIST */ | 67 | if (option_mask32 & (1 << OPTBIT_L)) /* OPT_LIST */ |
68 | printf("%d %s\n", pid, cmd); | 68 | printf("%u %s\n", pid, cmd); |
69 | else | 69 | else |
70 | printf("%d\n", pid); | 70 | printf("%u\n", pid); |
71 | } else | 71 | } else |
72 | kill(pid, signo); | 72 | kill(pid, signo); |
73 | } | 73 | } |
diff --git a/procps/top.c b/procps/top.c index 31f2a5113..51f1c1aed 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) | |||
677 | if (s->vsz >= 100000) | 677 | if (s->vsz >= 100000) |
678 | sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); | 678 | sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); |
679 | else | 679 | else |
680 | sprintf(vsz_str_buf, "%7ld", s->vsz); | 680 | sprintf(vsz_str_buf, "%7lu", s->vsz); |
681 | /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ | 681 | /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ |
682 | col = snprintf(line_buf, scr_width, | 682 | col = snprintf(line_buf, scr_width, |
683 | "\n" "%5u%6u %-8.8s %s%s" FMT | 683 | "\n" "%5u%6u %-8.8s %s%s" FMT |