Module Name: src
Committed By: jakllsch
Date: Mon Mar 10 15:42:51 UTC 2014
Modified Files:
src/sbin/fdisk: fdisk.c
Log Message:
Always print the MBR drive serial number, even if it's 0.
To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/sbin/fdisk/fdisk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fdisk/fdisk.c
diff -u src/sbin/fdisk/fdisk.c:1.145 src/sbin/fdisk/fdisk.c:1.146
--- src/sbin/fdisk/fdisk.c:1.145 Sun Apr 14 22:48:22 2013
+++ src/sbin/fdisk/fdisk.c Mon Mar 10 15:42:51 2014
@@ -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 @@ print_s0(int which)
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));