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@xxxxxxxxxxxxxx> --- 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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox