Commit b002a861092b0db128800794a116cc3acc5ec239

Authored by Johannes Berg
Committed by David S. Miller
1 parent 9a20e3197e

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 <eric.dumazet@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -136,7 +136,7 @@
136 136 default:
137 137 printk(KERN_DEBUG
138 138 "%s: unable to resolve type %X addresses.\n",
139   - dev->name, (__force int)eth->h_proto);
  139 + dev->name, ntohs(eth->h_proto));
140 140  
141 141 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
142 142 break;