* [PATCH] printk: fix inverted logic in print_hex_dump_debug()
@ 2021-03-05 10:54 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2021-03-05 10:54 UTC (permalink / raw)
To: Barebox List
print_hex_dump_debug() shall print a hexdump when debugging is enabled,
not when it's disabled.
Fixes: 5825231429 ("printk: port over Linux print_hex_dump_bytes/print_hex_dump_debug")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
include/printk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/printk.h b/include/printk.h
index f92e477298..94a25ec9eb 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -160,7 +160,7 @@ extern void print_hex_dump(const char *level, const char *prefix_str,
int prefix_type, int rowsize, int groupsize,
const void *buf, size_t len, bool ascii);
-#if LOGLEVEL <= MSG_DEBUG
+#if LOGLEVEL >= MSG_DEBUG
#define print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
groupsize, buf, len, ascii) \
print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize, \
--
2.29.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-05 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 10:54 [PATCH] printk: fix inverted logic in print_hex_dump_debug() Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox