diff options
author | Antonio Cardace <anto.cardace@gmail.com> | 2018-02-19 06:37:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-20 13:51:47 -0500 |
commit | 3fef2b6290e85de93a7096381e77f9a1b7544278 (patch) | |
tree | 8e6185ec4de59eebea4cb319c0bd7e0c520b5917 | |
parent | a38bbe7d57b1d4d86e90823dd85d7883ae23be1d (diff) |
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>
-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, | |||
335 | } | 335 | } |
336 | } | 336 | } |
337 | 337 | ||
338 | pr_debug("invalid PLP frame %02X %02X %02X\n", | 338 | pr_debug("invalid PLP frame %3ph\n", frame); |
339 | frame[0], frame[1], frame[2]); | ||
340 | 339 | ||
341 | return X25_ILLEGAL; | 340 | return X25_ILLEGAL; |
342 | } | 341 | } |