ethernet: print protocol in host byte order
Subsystems (2)
PATCH 1/1 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]>
--- net/ethernet/eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ethernet/eth.c +1 -1
@@ -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 ;
From: Johannes Berg <[email protected]>
Date: Wed, 21 Apr 2010 09:06:07 +0200
Quoted 7 lines
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]>
Applied to net-next-2.6, thanks a lot Johannes.