diff options
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/top.c b/procps/top.c index b08444a76..abee69806 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -294,7 +294,7 @@ static void get_jiffy_counts(void) | |||
294 | * they are used to calculate per process CPU% */ | 294 | * they are used to calculate per process CPU% */ |
295 | prev_jif = cur_jif; | 295 | prev_jif = cur_jif; |
296 | if (read_cpu_jiffy(fp, &cur_jif) < 4) | 296 | if (read_cpu_jiffy(fp, &cur_jif) < 4) |
297 | bb_error_msg_and_die("can't read /proc/stat"); | 297 | bb_error_msg_and_die("can't read '%s'", "/proc/stat"); |
298 | 298 | ||
299 | #if !ENABLE_FEATURE_TOP_SMP_CPU | 299 | #if !ENABLE_FEATURE_TOP_SMP_CPU |
300 | fclose(fp); | 300 | fclose(fp); |
@@ -995,7 +995,7 @@ static unsigned handle_input(unsigned scan_mask, unsigned interval) | |||
995 | } | 995 | } |
996 | # if ENABLE_FEATURE_SHOW_THREADS | 996 | # if ENABLE_FEATURE_SHOW_THREADS |
997 | if (c == 'h' | 997 | if (c == 'h' |
998 | IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK) | 998 | IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK) |
999 | ) { | 999 | ) { |
1000 | scan_mask ^= PSSCAN_TASKS; | 1000 | scan_mask ^= PSSCAN_TASKS; |
1001 | continue; | 1001 | continue; |