Skip to content

Commit

Permalink
ethernet: print protocol in host byte order
Browse files Browse the repository at this point in the history
Eric's recent patch added __force, but this
place would seem to require actually doing
a byte order conversion so the printk is
consistent across architectures.

Cc: Eric Dumazet <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jmberg authored and davem330 committed Apr 22, 2010
1 parent 9a20e31 commit b002a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ethernet/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int eth_rebuild_header(struct sk_buff *skb)
default:
printk(KERN_DEBUG
"%s: unable to resolve type %X addresses.\n",
dev->name, (__force int)eth->h_proto);
dev->name, ntohs(eth->h_proto));

memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
break;
Expand Down

0 comments on commit b002a86

Please sign in to comment.