summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dump.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-12-07 05:04:49 +0000
committerscottl <scottl@FreeBSD.org>2003-12-07 05:04:49 +0000
commit2b68e67c6dd54583034d8bfd6d2b87e8de25e973 (patch)
tree31784046cc55a6806b91e9c61d452431be9a79e0 /sys/geom/geom_dump.c
parente1402f33051fefa6407e8175f2fc64ed7167a5ff (diff)
downloadFreeBSD-src-2b68e67c6dd54583034d8bfd6d2b87e8de25e973.zip
FreeBSD-src-2b68e67c6dd54583034d8bfd6d2b87e8de25e973.tar.gz
Re-arrange and consolidate some random debugging stuff
Diffstat (limited to 'sys/geom/geom_dump.c')
-rw-r--r--sys/geom/geom_dump.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c
index 365773c..f110ceb 100644
--- a/sys/geom/geom_dump.c
+++ b/sys/geom/geom_dump.c
@@ -281,34 +281,3 @@ g_trace(int level, const char *fmt, ...)
va_end(ap);
printf("\n");
}
-
-void
-g_hexdump(void *ptr, int length)
-{
- int i, j, k;
- unsigned char *cp;
-
- cp = ptr;
- for (i = 0; i < length; i+= 16) {
- printf("%04x ", i);
- for (j = 0; j < 16; j++) {
- k = i + j;
- if (k < length)
- printf(" %02x", cp[k]);
- else
- printf(" ");
- }
- printf(" |");
- for (j = 0; j < 16; j++) {
- k = i + j;
- if (k >= length)
- printf(" ");
- else if (cp[k] >= ' ' && cp[k] <= '~')
- printf("%c", cp[k]);
- else
- printf(".");
- }
- printf("|\n");
- }
-}
-
OpenPOWER on IntegriCloud