Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Add the missing cases.



details:   https://anonhg.NetBSD.org/src/rev/7e9c802ce9a8
branches:  trunk
changeset: 341923:7e9c802ce9a8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 29 14:12:56 2015 +0000

description:
Add the missing cases.

diffstat:

 sbin/gpt/show.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r aea089b611e9 -r 7e9c802ce9a8 sbin/gpt/show.c
--- a/sbin/gpt/show.c   Sun Nov 29 14:12:35 2015 +0000
+++ b/sbin/gpt/show.c   Sun Nov 29 14:12:56 2015 +0000
@@ -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 @@
                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 @@
                case MAP_TYPE_PMBR:
                        printf("PMBR");
                        break;
+               default:
+                       printf("Unknown %#x", m->map_type);
+                       break;
                }
                putchar('\n');
                m = m->map_next;



Home | Main Index | Thread Index | Old Index