Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Make the -l flage more useful, by actually printi...
details: https://anonhg.NetBSD.org/src/rev/8022734d1ef9
branches: trunk
changeset: 537905:8022734d1ef9
user: jdarrow <jdarrow%NetBSD.org@localhost>
date: Tue Oct 08 07:38:47 2002 +0000
description:
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 0387e2a9db2a -r 8022734d1ef9 sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Tue Oct 08 05:54:05 2002 +0000
+++ b/sbin/fdisk/fdisk.c Tue Oct 08 07:38:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.55 2002/09/27 23:19:56 dbj Exp $ */
+/* $NetBSD: fdisk.c,v 1.56 2002/10/08 07:38:47 jdarrow Exp $ */
/*
* Mach Operating System
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.55 2002/09/27 23:19:56 dbj Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.56 2002/10/08 07:38:47 jdarrow 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