Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Jakub Kicinski
e07c5f2e 2412643a

+3 -4
+3 -4
drivers/net/ethernet/amd/a2065.c
··· 547 547 if (!lance_tx_buffs_avail(lp)) 548 548 goto out_free; 549 549 550 - #ifdef DEBUG 551 550 /* dump the packet */ 552 - print_hex_dump(KERN_DEBUG, "skb->data: ", DUMP_PREFIX_NONE, 553 - 16, 1, skb->data, 64, true); 554 - #endif 551 + print_hex_dump_debug("skb->data: ", DUMP_PREFIX_NONE, 16, 1, skb->data, 552 + 64, true); 553 + 555 554 entry = lp->tx_new & lp->tx_ring_mod_mask; 556 555 ib->btx_ring[entry].length = (-skblen) | 0xf000; 557 556 ib->btx_ring[entry].misc = 0;