Module Name: src
Committed By: christos
Date: Sun Nov 29 14:12:56 UTC 2015
Modified Files:
src/sbin/gpt: show.c
Log Message:
Add the missing cases.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sbin/gpt/show.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/gpt/show.c
diff -u src/sbin/gpt/show.c:1.22 src/sbin/gpt/show.c:1.23
--- src/sbin/gpt/show.c:1.22 Sat Nov 28 19:14:46 2015
+++ src/sbin/gpt/show.c Sun Nov 29 09:12:56 2015
@@ -33,7 +33,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.22 2015/11/29 00:14:46 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.23 2015/11/29 14:12:56 christos Exp $");
#endif
#include <sys/types.h>
@@ -90,6 +90,9 @@ show(void)
putchar(' ');
putchar(' ');
switch (m->map_type) {
+ case MAP_TYPE_UNUSED:
+ printf("Unused");
+ break;
case MAP_TYPE_MBR:
if (m->map_start != 0)
printf("Extended ");
@@ -145,6 +148,9 @@ show(void)
case MAP_TYPE_PMBR:
printf("PMBR");
break;
+ default:
+ printf("Unknown %#x", m->map_type);
+ break;
}
putchar('\n');
m = m->map_next;