[PATCH] nfc: st-nci: Use print_hex_dump_debug() in NDLC_DUMP_SKB()

From: Luca Weiss

Date: Fri Sep 18 2026 - 04:27:59 EST


print_hex_dump() will output when just the console log level is set to
>= 7, which is different than the pr_debug() on the line before, which
will be going through the dynamic debug feature.

Use print_hex_dump_debug() to have both prints be controllable via
dynamic debug.

Signed-off-by: Luca Weiss <luca.weiss@xxxxxxxxxxxxx>
---
drivers/nfc/st-nci/ndlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nfc/st-nci/ndlc.c b/drivers/nfc/st-nci/ndlc.c
index be4808859cfa..89a13a439279 100644
--- a/drivers/nfc/st-nci/ndlc.c
+++ b/drivers/nfc/st-nci/ndlc.c
@@ -39,7 +39,7 @@
#define NDLC_DUMP_SKB(info, skb) \
do { \
pr_debug("%s:\n", info); \
- print_hex_dump(KERN_DEBUG, "ndlc: ", DUMP_PREFIX_OFFSET, \
+ print_hex_dump_debug("ndlc: ", DUMP_PREFIX_OFFSET, \
16, 1, skb->data, skb->len, 0); \
} while (0)


---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
change-id: 20260918-stnci-ndlc-debug-3b726547b775

Best regards,
--
Luca Weiss <luca.weiss@xxxxxxxxxxxxx>