]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[lotest] Fix endianness in status message
authorMichael Brown <mcb30@ipxe.org>
Sat, 20 Nov 2010 05:08:25 +0000 (05:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 20 Nov 2010 16:51:05 +0000 (16:51 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/lotest.c

index 6c87923c03a5dd809f58915126bb59d53562bd69..c8ee621342c00ad2c9dc4533aea31d434757bb45 100644 (file)
@@ -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.