Skip to content

Commit

Permalink
net: atarilance: use %8ph for printing hex string
Browse files Browse the repository at this point in the history
This is already using the %pM printf extension; might as well also use
%ph to make the code smaller.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rasmus Villemoes authored and David S. Miller committed Dec 2, 2016
1 parent d709b2a commit b14945a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/net/ethernet/amd/atarilance.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,13 +1012,9 @@ static int lance_rx( struct net_device *dev )
u_char *data = PKTBUF_ADDR(head);

printk(KERN_DEBUG "%s: RX pkt type 0x%04x from %pM to %pM "
"data %02x %02x %02x %02x %02x %02x %02x %02x "
"len %d\n",
"data %8ph len %d\n",
dev->name, ((u_short *)data)[6],
&data[6], data,
data[15], data[16], data[17], data[18],
data[19], data[20], data[21], data[22],
pkt_len);
&data[6], data, &data[15], pkt_len);
}

skb_reserve( skb, 2 ); /* 16 byte align */
Expand Down

0 comments on commit b14945a

Please sign in to comment.