Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt Add some debugging.
details: https://anonhg.NetBSD.org/src/rev/40b60ade30ec
branches: trunk
changeset: 812064:40b60ade30ec
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 29 14:12:35 2015 +0000
description:
Add some debugging.
diffstat:
sbin/gpt/map.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 4c9aa28a2404 -r 40b60ade30ec sbin/gpt/map.c
--- a/sbin/gpt/map.c Sun Nov 29 14:03:35 2015 +0000
+++ b/sbin/gpt/map.c Sun Nov 29 14:12:35 2015 +0000
@@ -33,7 +33,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/map.c,v 1.6 2005/08/31 01:47:19 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: map.c,v 1.9 2015/11/29 00:34:39 christos Exp $");
+__RCSID("$NetBSD: map.c,v 1.10 2015/11/29 14:12:35 christos Exp $");
#endif
#include <sys/types.h>
@@ -65,7 +65,7 @@
return (m);
}
-static const char *maptypes[] = {
+static const char *maptypes[] = {
"unused",
"mbr",
"mbr partition",
@@ -90,6 +90,14 @@
{
map_t *m, *n, *p;
+#ifdef DEBUG
+ printf("add: %s %#jx %#jx\n", map_type(type), (uintmax_t)start,
+ (uintmax_t)size);
+ for (n = mediamap; n; n = n->map_next)
+ printf("have: %s %#jx %#jx\n", map_type(n->map_type),
+ (uintmax_t)n->map_start, (uintmax_t)n->map_size);
+#endif
+
n = mediamap;
while (n != NULL && n->map_start + n->map_size <= start)
n = n->map_next;
Home |
Main Index |
Thread Index |
Old Index