mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ethernet: print protocol in host byte order
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]>
This commit is contained in:
parent
9a20e3197e
commit
b002a86109
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue