diff options
author | Antonio Cardace <anto.cardace@gmail.com> | 2018-02-19 14:37:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-20 21:51:47 +0300 |
commit | 3fef2b6290e85de93a7096381e77f9a1b7544278 (patch) | |
tree | 8e6185ec4de59eebea4cb319c0bd7e0c520b5917 /net/x25/x25_subr.c | |
parent | a38bbe7d57b1d4d86e90823dd85d7883ae23be1d (diff) | |
download | linux-3fef2b6290e85de93a7096381e77f9a1b7544278.tar.xz |
x25: use %*ph to print small buffer
Use %*ph format to print small buffer as hex string.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Antonio Cardace <anto.cardace@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_subr.c')
-rw-r--r-- | net/x25/x25_subr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/x25/x25_subr.c b/net/x25/x25_subr.c index db0b1315d577..9c214ec681ac 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; } |