diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-05 17:32:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-08 01:07:25 +0200 |
commit | 13aa3463e574d2ae2618306dcd3e973c5eed6d7f (patch) | |
tree | cf76a8dce7ccc27066a691d4c1b20ec0b3a4ef75 /net/rose | |
parent | amd-xgbe-phy: Fix build break for missing declaration (diff) | |
download | linux-13aa3463e574d2ae2618306dcd3e973c5eed6d7f.tar.xz linux-13aa3463e574d2ae2618306dcd3e973c5eed6d7f.zip |
rose: use %*ph specifier
Instead of dereference each byte let's use %*ph specifier in the printk()
calls.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose')
-rw-r--r-- | net/rose/rose_link.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rose/rose_link.c b/net/rose/rose_link.c index bc5514211b0c..e873d7d9f857 100644 --- a/net/rose/rose_link.c +++ b/net/rose/rose_link.c @@ -160,7 +160,8 @@ void rose_link_rx_restart(struct sk_buff *skb, struct rose_neigh *neigh, unsigne break; case ROSE_DIAGNOSTIC: - printk(KERN_WARNING "ROSE: received diagnostic #%d - %02X %02X %02X\n", skb->data[3], skb->data[4], skb->data[5], skb->data[6]); + pr_warn("ROSE: received diagnostic #%d - %3ph\n", skb->data[3], + skb->data + 4); break; default: |