Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sbin/fdisk Pull up revision 1.56 (requested by jdarrow ...



details:   https://anonhg.NetBSD.org/src/rev/2105608cb854
branches:  netbsd-1-6
changeset: 530251:2105608cb854
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 02 15:13:23 2003 +0000

description:
Pull up revision 1.56 (requested by jdarrow in ticket #1206):
Make the -l flage more useful, by actually printing the systype number
alongside the sysid string (instead of just the array index of the
struct part_type they are found in).
Now fdisk -l shows the familiar 169 for NetBSD, 165 for FreeBSD or
386BSD or old NetBSD, and other possibly-familiar (131 for Linux native,
015 for Ext. Partition - LBA) values in with their correct numbers.

diffstat:

 sbin/fdisk/fdisk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 44f30c98a4a0 -r 2105608cb854 sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c        Mon Jun 02 15:11:30 2003 +0000
+++ b/sbin/fdisk/fdisk.c        Mon Jun 02 15:13:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdisk.c,v 1.52.2.2 2003/06/02 15:11:30 tron Exp $ */
+/*     $NetBSD: fdisk.c,v 1.52.2.3 2003/06/02 15:13:23 tron Exp $ */
 
 /*
  * Mach Operating System
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.52.2.2 2003/06/02 15:11:30 tron Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.52.2.3 2003/06/02 15:13:23 tron Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -354,7 +354,7 @@
                        break;
                case 'l':
                        for (len = 0; len < KNOWN_SYSIDS; len++)
-                               printf("%03lu %s\n", (u_long) len,
+                               printf("%03d %s\n", part_types[len].type,
                                part_types[len].name);
                        return 0;
                case 'u':



Home | Main Index | Thread Index | Old Index