From: Antonio Cardace Date: Mon, 19 Feb 2018 11:37:15 +0000 (+0000) Subject: x25: use %*ph to print small buffer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3fef2b6290e85de93a7096381e77f9a1b7544278;p=linux.git x25: use %*ph to print small buffer Use %*ph format to print small buffer as hex string. Suggested-by: Andy Shevchenko Signed-off-by: Antonio Cardace Signed-off-by: David S. Miller --- diff --git a/net/x25/x25_subr.c b/net/x25/x25_subr.c index db0b1315d577a..9c214ec681ac8 100644 --- a/net/x25/x25_subr.c +++ b/net/x25/x25_subr.c @@ -335,8 +335,7 @@ int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, } } - pr_debug("invalid PLP frame %02X %02X %02X\n", - frame[0], frame[1], frame[2]); + pr_debug("invalid PLP frame %3ph\n", frame); return X25_ILLEGAL; }