From 9676ff3e8a8a33ad981aa099944b4b56af7d3770 Mon Sep 17 00:00:00 2001 From: yar Date: Mon, 23 Apr 2007 11:43:22 +0000 Subject: Insert explicit space between the output fields to prevent them from running together when a field overflows. MFC after: 1 week --- usr.bin/quota/quota.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/quota') 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" -- cgit v1.1