aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
commitfb132e47370378474c68ad22c1c0cb2ccee178de (patch)
tree4f78d0fdd1c2fa2341c7d9bb17f9d98d099a238c /procps
parent66cb7bed33da605674c3d24734466b8e8a60e337 (diff)
downloadbusybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.gz
busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.bz2
busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.zip
whitespace cleanup
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/iostat.c10
-rw-r--r--procps/mpstat.c14
-rw-r--r--procps/sysctl.c2
3 files changed, 13 insertions, 13 deletions
diff --git a/procps/iostat.c b/procps/iostat.c
index 5d829861e..a9ff13a05 100644
--- a/procps/iostat.c
+++ b/procps/iostat.c
@@ -18,14 +18,14 @@
18//config: Report CPU and I/O statistics 18//config: Report CPU and I/O statistics
19 19
20#include "libbb.h" 20#include "libbb.h"
21#include <sys/utsname.h> /* Need struct utsname */ 21#include <sys/utsname.h> /* Need 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)
25 25
26#define MAX_DEVICE_NAME 12 26#define MAX_DEVICE_NAME 12
27#define CURRENT 0 27#define CURRENT 0
28#define LAST 1 28#define LAST 1
29 29
30#if 1 30#if 1
31typedef unsigned long long cputime_t; 31typedef unsigned long long cputime_t;
@@ -327,7 +327,7 @@ static void do_disk_statistics(cputime_t itv)
327 int i = 0; 327 int i = 0;
328 char buf[128]; 328 char buf[128];
329 unsigned major, minor; 329 unsigned major, minor;
330 unsigned long wr_ops, dummy; /* %*lu for suppres the conversion wouldn't work */ 330 unsigned long wr_ops, dummy; /* %*lu for suppress the conversion wouldn't work */
331 unsigned long long rd_sec_or_wr_ops; 331 unsigned long long rd_sec_or_wr_ops;
332 unsigned long long rd_sec_or_dummy, wr_sec_or_dummy, wr_sec; 332 unsigned long long rd_sec_or_dummy, wr_sec_or_dummy, wr_sec;
333 struct stats_dev sd; 333 struct stats_dev sd;
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 */
diff --git a/procps/sysctl.c b/procps/sysctl.c
index 20b372c54..aba966e7f 100644
--- a/procps/sysctl.c
+++ b/procps/sysctl.c
@@ -91,7 +91,7 @@ static int sysctl_act_on_setting(char *setting)
91 retval = EXIT_FAILURE; 91 retval = EXIT_FAILURE;
92 goto end; 92 goto end;
93 } 93 }
94 value = cptr + 1; /* point to the value in name=value */ 94 value = cptr + 1; /* point to the value in name=value */
95 if (setting == cptr || !*value) { 95 if (setting == cptr || !*value) {
96 bb_error_msg("error: malformed setting '%s'", outname); 96 bb_error_msg("error: malformed setting '%s'", outname);
97 retval = EXIT_FAILURE; 97 retval = EXIT_FAILURE;