diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/debug.c | 6 | ||||
-rw-r--r-- | fs/ubifs/scan.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index ee84130703..782aa9a250 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -15,6 +15,8 @@ * various local functions of those subsystems. */ +#include <hexdump.h> + #ifndef __UBOOT__ #include <linux/module.h> #include <linux/debugfs.h> @@ -307,7 +309,7 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node) /* If the magic is incorrect, just hexdump the first bytes */ if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) { pr_err("Not a node, first %zu bytes:", UBIFS_CH_SZ); - print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 32, 1, + print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 1, (void *)node, UBIFS_CH_SZ, 1); return; } @@ -482,7 +484,7 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node) (int)le16_to_cpu(dn->compr_type)); pr_err("\tdata size %d\n", dlen); pr_err("\tdata:\n"); - print_hex_dump(KERN_ERR, "\t", DUMP_PREFIX_OFFSET, 32, 1, + print_hex_dump("\t", DUMP_PREFIX_OFFSET, 32, 1, (void *)&dn->data, dlen, 0); break; } diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index 4a977ae8cb..8ff668eec6 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c @@ -16,6 +16,7 @@ */ #ifdef __UBOOT__ +#include <hexdump.h> #include <linux/err.h> #endif #include "ubifs.h" @@ -236,7 +237,7 @@ void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, if (len > 8192) len = 8192; ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs); - print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1); + print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1); } /** |