summaryrefslogtreecommitdiffstats
path: root/usr.bin/quota
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-04-23 11:43:22 +0000
committeryar <yar@FreeBSD.org>2007-04-23 11:43:22 +0000
commit9676ff3e8a8a33ad981aa099944b4b56af7d3770 (patch)
tree1b90e07bde99e88726d89539b5e6f1eb3d5a6cc0 /usr.bin/quota
parentc0fd4f86bfa58825c0fe8fa67c14eed691eeae66 (diff)
downloadFreeBSD-src-9676ff3e8a8a33ad981aa099944b4b56af7d3770.zip
FreeBSD-src-9676ff3e8a8a33ad981aa099944b4b56af7d3770.tar.gz
Insert explicit space between the output fields to prevent them
from running together when a field overflows. MFC after: 1 week
Diffstat (limited to 'usr.bin/quota')
-rw-r--r--usr.bin/quota/quota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index 3792af4..454db2d 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -355,7 +355,7 @@ showquotas(int type, u_long id, const char *name)
prthumanval(6, dbtob(qup->dqblk.dqb_bsoftlimit));
prthumanval(7, dbtob(qup->dqblk.dqb_bhardlimit));
} else {
- printf("%8lu%c%7lu%8lu"
+ printf(" %7lu%c %6lu %7lu"
, (u_long) (dbtob(qup->dqblk.dqb_curblocks)
/ 1024)
, (msgb == (char *)0) ? ' ' : '*'
@@ -368,7 +368,7 @@ showquotas(int type, u_long id, const char *name)
bgrace = timeprt(qup->dqblk.dqb_btime, &bfree);
if (msgi != NULL)
igrace = timeprt(qup->dqblk.dqb_itime, &ifree);
- printf("%8s%8lu%c%7lu%8lu%8s\n"
+ printf(" %7s %7lu%c %6lu %7lu %7s\n"
, (msgb == (char *)0) ? "" : bgrace
, (u_long)qup->dqblk.dqb_curinodes
, (msgi == (char *)0) ? ' ' : '*'
@@ -422,7 +422,7 @@ heading(int type, u_long id, const char *name, const char *tag)
printf("Disk quotas for %s %s (%cid %lu): %s\n", qfextension[type],
name, *qfextension[type], id, tag);
if (!qflag && tag[0] == '\0') {
- printf("%15s%8s %7s%8s%8s%8s %7s%8s%8s\n"
+ printf("%15s %7s %6s %7s %7s %7s %6s %7s %7s\n"
, "Filesystem"
, "usage"
, "quota"
OpenPOWER on IntegriCloud