From owner-p4-projects Sun Feb 9 8: 4: 0 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C115337B405; Sun, 9 Feb 2003 08:03:57 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7201837B401 for ; Sun, 9 Feb 2003 08:03:57 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FA5C43F75 for ; Sun, 9 Feb 2003 08:03:57 -0800 (PST) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h19G3ubv091801 for ; Sun, 9 Feb 2003 08:03:56 -0800 (PST) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h19G3uW7091798 for perforce@freebsd.org; Sun, 9 Feb 2003 08:03:56 -0800 (PST) Date: Sun, 9 Feb 2003 08:03:56 -0800 (PST) Message-Id: <200302091603.h19G3uW7091798@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett Subject: PERFORCE change 24902 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=24902 Change 24902 by jmallett@jmallett_dalek on 2003/02/09 08:03:15 Give tabular output so someone other than me can make sense of this. (maybe) Affected files ... .. //depot/projects/mips/sbin/fxlabel/fxlabel.c#4 edit Differences ... ==== //depot/projects/mips/sbin/fxlabel/fxlabel.c#4 (text+ko) ==== @@ -207,13 +207,14 @@ struct voldir *dp; int i; - printf("directory listing\n"); + printf("--- DIRECTORY LISTING ---\n"); + printf("%8s %-18s %s\n", "FILENAME", "BEGIN LBN", "SIZE"); for (i = 0; i < FX_DIRSIZE; i++) { dp = &vp->vh_dir[i]; if (!dp->vd_size) continue; - printf("\t%-8.8s\tsize %d, addr %d\n", - dp->vd_name, dp->vd_size, dp->vd_addr); + printf("%8.8s %-18d %d\n", dp->vd_name, dp->vd_addr, + dp->vd_size); } } @@ -298,16 +299,18 @@ int i, nparts; nparts = 0; + printf("--- PARTITION TABLE ---\n"); + printf("%8s %-5s %-20s %-18s %s\n", + "PART", "TYPE", "(TYPE NAME)", "BEGIN LBN", "SIZE"); for (i = 0; i < FX_NPARTS; i++) { part = &vp->vh_part[i]; if (!part->vp_size) continue; nparts++; - printf("found partition %c, type %d (%s) %d-%d\n", - 'a' + i, part->vp_type, parttype(part), part->vp_begin, - part->vp_size); + printf("%8c %-5d %-20s %-18d %d\n", 'a' + i, part->vp_type, + parttype(part), part->vp_begin, part->vp_size); } - printf("found %d partitions\n", nparts); + printf("--- FOUND %d PARTITIONS ---\n", nparts); printf("root at %c\n", 'a' + vp->vh_root); printf("swap at %c\n", 'a' + vp->vh_swap); if (vp->vh_kernel[0] != '\0') To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message