summaryrefslogtreecommitdiffstats
path: root/drivers/video
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 /drivers/video
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 'drivers/video')
-rw-r--r--drivers/video/tc358767.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/tc358767.c b/drivers/video/tc358767.c
index e64dde1ddf..7d14aca911 100644
--- a/drivers/video/tc358767.c
+++ b/drivers/video/tc358767.c
@@ -1191,8 +1191,7 @@ static int tc_read_edid(struct tc_data *tc)
#ifdef DEBUG
printk(KERN_DEBUG "eDP display EDID:\n");
- print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 1, tc->edid,
- EDID_LENGTH, true);
+ print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, tc->edid, EDID_LENGTH);
#endif
return 0;