From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 19 19:01:28 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E56AD16A47E for ; Thu, 19 Oct 2006 19:01:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B8543DE0 for ; Thu, 19 Oct 2006 19:00:46 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9JJ0dg1072576 for ; Thu, 19 Oct 2006 19:00:39 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9JJ0dFe072573; Thu, 19 Oct 2006 19:00:39 GMT (envelope-from gnats) Date: Thu, 19 Oct 2006 19:00:39 GMT Message-Id: <200610191900.k9JJ0dFe072573@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Michael Hanselmann Cc: Subject: Re: misc/104573: quota program fails to seperate columns when using large limits X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Hanselmann List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 19:01:29 -0000 The following reply was made to PR misc/104573; it has been noted by GNATS. From: Michael Hanselmann 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