summaryrefslogtreecommitdiffstats
path: root/net/x25
diff options
context:
space:
mode:
authorAntonio Cardace <anto.cardace@gmail.com>2018-02-19 12:37:15 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-20 19:51:47 +0100
commit3fef2b6290e85de93a7096381e77f9a1b7544278 (patch)
tree8e6185ec4de59eebea4cb319c0bd7e0c520b5917 /net/x25
parentMerge branch 'net-Expose-KVD-linear-parts-as-resources' (diff)
downloadlinux-3fef2b6290e85de93a7096381e77f9a1b7544278.tar.xz
linux-3fef2b6290e85de93a7096381e77f9a1b7544278.zip
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')
-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;
}