Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Always print the MBR drive serial number, even if...
details: https://anonhg.NetBSD.org/src/rev/d8434bfb1dcc
branches: trunk
changeset: 327549:d8434bfb1dcc
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Mar 10 15:42:51 2014 +0000
description:
Always print the MBR drive serial number, even if it's 0.
diffstat:
sbin/fdisk/fdisk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4c3f39fd107d -r d8434bfb1dcc sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Mon Mar 10 14:51:15 2014 +0000
+++ b/sbin/fdisk/fdisk.c Mon Mar 10 15:42:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.145 2013/04/14 22:48:22 jakllsch Exp $ */
+/* $NetBSD: fdisk.c,v 1.146 2014/03/10 15:42:51 jakllsch Exp $ */
/*
* Mach Operating System
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.145 2013/04/14 22:48:22 jakllsch Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.146 2014/03/10 15:42:51 jakllsch Exp $");
#endif /* not lint */
#define MBRPTYPENAMES
@@ -705,7 +705,7 @@
else
printf("First active partition: %d\n", active);
}
- if (!sh_flag && mboot.mbr_dsn != 0)
+ if (!sh_flag)
printf("Drive serial number: %"PRIu32" (0x%08x)\n",
le32toh(mboot.mbr_dsn),
le32toh(mboot.mbr_dsn));
Home |
Main Index |
Thread Index |
Old Index