summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAntonio Cardace <anto.cardace@gmail.com>2018-02-19 11:37:15 +0000
committerDavid S. Miller <davem@davemloft.net>2018-02-20 13:51:47 -0500
commit3fef2b6290e85de93a7096381e77f9a1b7544278 (patch)
tree8e6185ec4de59eebea4cb319c0bd7e0c520b5917 /net
parenta38bbe7d57b1d4d86e90823dd85d7883ae23be1d (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>
Diffstat (limited to 'net')
-rw-r--r--net/x25/x25_subr.c3
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;
}