diff options
author | scottl <scottl@FreeBSD.org> | 2003-12-07 05:04:49 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-12-07 05:04:49 +0000 |
commit | 2b68e67c6dd54583034d8bfd6d2b87e8de25e973 (patch) | |
tree | 31784046cc55a6806b91e9c61d452431be9a79e0 /sys/geom/geom_dump.c | |
parent | e1402f33051fefa6407e8175f2fc64ed7167a5ff (diff) | |
download | FreeBSD-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.c | 31 |
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"); - } -} - |