From f12fcd53b1b661b5bfe7b5048398225297133b95 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 20 Nov 2010 05:08:25 +0000 Subject: [PATCH] [lotest] Fix endianness in status message Signed-off-by: Michael Brown --- src/usr/lotest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/lotest.c b/src/usr/lotest.c index 6c87923c0..c8ee62134 100644 --- a/src/usr/lotest.c +++ b/src/usr/lotest.c @@ -194,7 +194,7 @@ int loopback_test ( struct net_device *sender, struct net_device *receiver, } } else { printf ( "\nReceived spurious packet type %04x\n", - net_proto ); + ntohs ( net_proto ) ); /* Continue; this allows for the fact that * there may have been packets outstanding on * the wire when we started the test.