summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-02-02 20:40:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-02-04 11:11:35 +0100
commit582523142975c7993af81ff8007ff8e0e96f6dee (patch)
tree42e3e840486d70f317274b60d9f44f0ca3090511 /fs
parent576d407abb53cf73e211f5eb67bf6c1e2d7cf731 (diff)
downloadbarebox-582523142975c7993af81ff8007ff8e0e96f6dee.tar.gz
barebox-582523142975c7993af81ff8007ff8e0e96f6dee.tar.xz
printk: port over Linux print_hex_dump_bytes/print_hex_dump_debug
print_hex_dump in barebox always prints a hex dump. Most users use it for debugging though, so import Linux helpers to do so to cut down on the #ifdef DEBUG. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c
index ea88926163..113c2cf755 100644
--- a/fs/ubifs/scan.c
+++ b/fs/ubifs/scan.c
@@ -244,7 +244,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_debug("", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1);
}
/**