From: Johannes Berg Date: Tue, 20 Apr 2010 21:06:07 +0000 (+0000) Subject: ethernet: print protocol in host byte order X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b002a861092b0db128800794a116cc3acc5ec239;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 35846964082c..0c0d272a9888 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c @@ -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;