From 413eb82c17f047ef57ecc98f53dafa92ba4a44a9 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Fri, 12 Oct 2007 11:13:08 +1000 Subject: [PATCH] --- yaml --- r: 84462 b: refs/heads/master c: d4f3cc016fd6b392d483adc586b6dfaabad081af h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/support/debug.c | 6 ++++++ trunk/fs/xfs/xfs_error.c | 31 ------------------------------- trunk/fs/xfs/xfs_error.h | 2 ++ 4 files changed, 9 insertions(+), 32 deletions(-) diff --git a/[refs] b/[refs] index 971b6c053ddc..c519bcdec60f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91906a882a4c9541317bc4f4c7fa5d8b784ba198 +refs/heads/master: d4f3cc016fd6b392d483adc586b6dfaabad081af diff --git a/trunk/fs/xfs/support/debug.c b/trunk/fs/xfs/support/debug.c index fa4fb1820e75..c27abef7b84f 100644 --- a/trunk/fs/xfs/support/debug.c +++ b/trunk/fs/xfs/support/debug.c @@ -80,3 +80,9 @@ assfail(char *expr, char *file, int line) printk("Assertion failed: %s, file: %s, line: %d\n", expr, file, line); BUG(); } + +void +xfs_hex_dump(void *p, int length) +{ + print_hex_dump(KERN_ALERT, "", DUMP_PREFIX_OFFSET, 16, 1, p, length, 1); +} diff --git a/trunk/fs/xfs/xfs_error.c b/trunk/fs/xfs/xfs_error.c index a4634d94e561..05e5365d3c31 100644 --- a/trunk/fs/xfs/xfs_error.c +++ b/trunk/fs/xfs/xfs_error.c @@ -230,37 +230,6 @@ xfs_error_report( } } -STATIC void -xfs_hex_dump(void *p, int length) -{ - __uint8_t *uip = (__uint8_t*)p; - int i; - char sbuf[128], *s; - - s = sbuf; - *s = '\0'; - for (i=0; i