projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a42f5c1
)
rose: use %*ph specifier
author
Andy Shevchenko
<
[email protected]
>
Fri, 5 Sep 2014 15:32:18 +0000
(18:32 +0300)
committer
David S. Miller
<
[email protected]
>
Sun, 7 Sep 2014 23:07:25 +0000
(16:07 -0700)
Instead of dereference each byte let's use %*ph specifier in the printk()
calls.
Signed-off-by: Andy Shevchenko <
[email protected]
>
Acked-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rose/rose_link.c
patch
|
blob
|
history
diff --git
a/net/rose/rose_link.c
b/net/rose/rose_link.c
index bc5514211b0cfb4b3d4d42a12eeb03de8e90a2b4..e873d7d9f8571c4d5db2efd70dcdd0c5da792e1c 100644
(file)
--- 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: