misc/104573: quota program fails to seperate columns when using large limits

Michael Hanselmann freebsd at hansmi.ch
Thu Oct 19 12:01:29 PDT 2006


The following reply was made to PR misc/104573; it has been noted by GNATS.

From: Michael Hanselmann <freebsd at hansmi.ch>
To: bug-followup at FreeBSD.org, freebsd at hansmi.ch
Cc:  
Subject: Re: misc/104573: quota program fails to seperate columns when using large limits
Date: Thu, 19 Oct 2006 20:53:52 +0200

 Here's a better patch, which should conserve the exact positions of
 columns:
 
 diff -u -r1.24 quota.c
 --- quota.c	13 Mar 2005 17:58:31 -0000	1.24
 +++ quota.c	19 Oct 2006 18:48:35 -0000
 @@ -310,7 +310,7 @@
  				printf("%s\n", qup->fsname);
  				nam = "";
  			} 
 -			printf("%15s%8lu%c%7lu%8lu%8s"
 +			printf("%15s %7lu %c%6lu %7lu %7s"
  				, nam
  				, (u_long) (dbtob(qup->dqblk.dqb_curblocks)
  					    / 1024)
 @@ -321,7 +321,7 @@
  					    / 1024)
  				, (msgb == (char *)0) ? ""
  				    :timeprt(qup->dqblk.dqb_btime));
 -			printf("%8lu%c%7lu%8lu%8s\n"
 +			printf(" %7lu %c%6lu %7lu %7s\n"
  				, (u_long)qup->dqblk.dqb_curinodes
  				, (msgi == (char *)0) ? ' ' : '*'
  				, (u_long)qup->dqblk.dqb_isoftlimit


More information about the freebsd-bugs mailing list