diff options
Diffstat (limited to 'procps/mpstat.c')
-rw-r--r-- | procps/mpstat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/procps/mpstat.c b/procps/mpstat.c index f1a0b00b8..25efedf62 100644 --- a/procps/mpstat.c +++ b/procps/mpstat.c | |||
@@ -18,7 +18,7 @@ | |||
18 | //config: Per-processor statistics | 18 | //config: Per-processor statistics |
19 | 19 | ||
20 | #include "libbb.h" | 20 | #include "libbb.h" |
21 | #include <sys/utsname.h> /* struct utsname */ | 21 | #include <sys/utsname.h> /* struct utsname */ |
22 | 22 | ||
23 | //#define debug(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__) | 23 | //#define debug(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__) |
24 | #define debug(fmt, ...) ((void)0) | 24 | #define debug(fmt, ...) ((void)0) |
@@ -634,7 +634,7 @@ static void get_irqs_from_interrupts(const char *fname, | |||
634 | while (irq < irqs_per_cpu) { | 634 | while (irq < irqs_per_cpu) { |
635 | /* Number of interrupts per CPU has changed */ | 635 | /* Number of interrupts per CPU has changed */ |
636 | ic = &per_cpu_stats[current][irq]; | 636 | ic = &per_cpu_stats[current][irq]; |
637 | ic->irq_name[0] = '\0'; /* False interrupt */ | 637 | ic->irq_name[0] = '\0'; /* False interrupt */ |
638 | irq++; | 638 | irq++; |
639 | } | 639 | } |
640 | } | 640 | } |
@@ -820,7 +820,7 @@ static int get_irqcpu_nr(const char *f, int max_irqs) | |||
820 | unsigned irq; | 820 | unsigned irq; |
821 | 821 | ||
822 | fp = fopen_for_read(f); | 822 | fp = fopen_for_read(f); |
823 | if (!fp) /* No interrupts file */ | 823 | if (!fp) /* No interrupts file */ |
824 | return 0; | 824 | return 0; |
825 | 825 | ||
826 | linelen = INTERRUPTS_LINE + 16 * G.cpu_nr; | 826 | linelen = INTERRUPTS_LINE + 16 * G.cpu_nr; |
@@ -858,10 +858,10 @@ int mpstat_main(int UNUSED_PARAM argc, char **argv) | |||
858 | char *opt_set_cpu; | 858 | char *opt_set_cpu; |
859 | int i, opt; | 859 | int i, opt; |
860 | enum { | 860 | enum { |
861 | OPT_ALL = 1 << 0, /* -A */ | 861 | OPT_ALL = 1 << 0, /* -A */ |
862 | OPT_INTS = 1 << 1, /* -I */ | 862 | OPT_INTS = 1 << 1, /* -I */ |
863 | OPT_SETCPU = 1 << 2, /* -P */ | 863 | OPT_SETCPU = 1 << 2, /* -P */ |
864 | OPT_UTIL = 1 << 3, /* -u */ | 864 | OPT_UTIL = 1 << 3, /* -u */ |
865 | }; | 865 | }; |
866 | 866 | ||
867 | /* Dont buffer data if redirected to a pipe */ | 867 | /* Dont buffer data if redirected to a pipe */ |