Skip to content

Commit

Permalink
x25: use %*ph to print small buffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonio Cardace authored and David S. Miller committed Feb 20, 2018
1 parent a38bbe7 commit 3fef2b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/x25/x25_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3fef2b6

Please sign in to comment.