diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2020-01-12 19:33:54 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-01-13 03:20:26 +0300 |
commit | e07c5f2e4e911d933c8daa3c6f6be063ee0e5c2d (patch) | |
tree | 96107b81becbf2619c70bffd2bb1b4ba05da2bc8 /drivers/net/ethernet/amd | |
parent | 2412643a9b02702aab68595e0fa0797ae5ce6176 (diff) | |
download | linux-e07c5f2e4e911d933c8daa3c6f6be063ee0e5c2d.tar.xz |
net: amd: a2065: Use print_hex_dump_debug() helper
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>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/a2065.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/amd/a2065.c b/drivers/net/ethernet/amd/a2065.c index 0b1affee87e2..2f808dbc8b0e 100644 --- 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; |