Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 19:00:39 GMT
From:      Michael Hanselmann <freebsd@hansmi.ch>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/104573: quota program fails to seperate columns when using large limits
Message-ID:  <200610191900.k9JJ0dFe072573@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/104573; it has been noted by GNATS.

From: Michael Hanselmann <freebsd@hansmi.ch>
To: bug-followup@FreeBSD.org, freebsd@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610191900.k9JJ0dFe072573>