summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-04-30 05:54:21 +0000
committerbde <bde@FreeBSD.org>2006-04-30 05:54:21 +0000
commit4130aca496df4b4b3fdd89b2db3793cc0fb8878e (patch)
tree9c45d2c6365aa0c214fbf86d6650d85b8c9e4614 /usr.bin/systat
parent9225e9bd8fff446f27be147d518cb90f526ca46d (diff)
downloadFreeBSD-src-4130aca496df4b4b3fdd89b2db3793cc0fb8878e.zip
FreeBSD-src-4130aca496df4b4b3fdd89b2db3793cc0fb8878e.tar.gz
If DEBUG is defined, then fill numeric fields with asterisks instead of
spaces and numbers for temporary(?) debugging.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 4e0d59b..a836fce 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -696,6 +696,11 @@ putint(n, l, lc, w)
char b[128];
move(l, lc);
+#ifdef DEBUG
+ while (w-- > 0)
+ addch('*');
+ return;
+#endif
if (n == 0) {
while (w-- > 0)
addch(' ');
@@ -723,6 +728,11 @@ putfloat(f, l, lc, w, d, nz)
char b[128];
move(l, lc);
+#ifdef DEBUG
+ while (--w >= 0)
+ addch('*');
+ return;
+#endif
if (nz && f == 0.0) {
while (--w >= 0)
addch(' ');
@@ -748,6 +758,11 @@ putlongdouble(f, l, lc, w, d, nz)
char b[128];
move(l, lc);
+#ifdef DEBUG
+ while (--w >= 0)
+ addch('*');
+ return;
+#endif
if (nz && f == 0.0) {
while (--w >= 0)
addch(' ');
OpenPOWER on IntegriCloud