aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2016-05-26 11:43:52 +0000
committerDavid S. Miller <[email protected]>2016-05-30 05:33:25 +0000
commit0d08df6c493898e679d9c517e77ea95c063d40ec (patch)
tree81cacd2e3046bc70107fc420b557c807d0ab56be /net/lapb/lapb_out.c
parentptp: oops in ptp_ioctl() (diff)
downloadkernel-0d08df6c493898e679d9c517e77ea95c063d40ec.tar.gz
kernel-0d08df6c493898e679d9c517e77ea95c063d40ec.zip
net/lapb: tuse %*ph to dump buffers
Use %*ph specifier to dump small buffers in hex format instead doing this byte-by-byte. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
-rw-r--r--net/lapb/lapb_out.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/lapb/lapb_out.c b/net/lapb/lapb_out.c
index ba4d015bd1a6..482c94d9d958 100644
--- a/net/lapb/lapb_out.c
+++ b/net/lapb/lapb_out.c
@@ -148,9 +148,7 @@ void lapb_transmit_buffer(struct lapb_cb *lapb, struct sk_buff *skb, int type)
}
}
- lapb_dbg(2, "(%p) S%d TX %02X %02X %02X\n",
- lapb->dev, lapb->state,
- skb->data[0], skb->data[1], skb->data[2]);
+ lapb_dbg(2, "(%p) S%d TX %3ph\n", lapb->dev, lapb->state, skb->data);
if (!lapb_data_transmit(lapb, skb))
kfree_skb(skb);