Date: Sun, 9 Feb 2003 08:03:56 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24902 for review Message-ID: <200302091603.h19G3uW7091798@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302091603.h19G3uW7091798>