projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2412643
)
net: amd: a2065: Use print_hex_dump_debug() helper
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 12 Jan 2020 16:33:54 +0000
(17:33 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 13 Jan 2020 00:20:26 +0000
(16:20 -0800)
Use the print_hex_dump_debug() helper, instead of open-coding the same
operations.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/a2065.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amd/a2065.c
b/drivers/net/ethernet/amd/a2065.c
index
0b1affe
..
2f808db
100644
(file)
--- a/
drivers/net/ethernet/amd/a2065.c
+++ b/
drivers/net/ethernet/amd/a2065.c
@@
-547,11
+547,10
@@
static netdev_tx_t lance_start_xmit(struct sk_buff *skb,
if (!lance_tx_buffs_avail(lp))
goto out_free;
-#ifdef DEBUG
/* dump the packet */
- print_hex_dump
(KERN_DEBUG, "skb->data: ", DUMP_PREFIX_NONE
,
-
16, 1, skb->data,
64, true);
-#endif
+ print_hex_dump
_debug("skb->data: ", DUMP_PREFIX_NONE, 16, 1, skb->data
,
+
64, true);
+
entry = lp->tx_new & lp->tx_ring_mod_mask;
ib->btx_ring[entry].length = (-skblen) | 0xf000;
ib->btx_ring[entry].misc = 0;