瀏覽代碼

[lotest] Fix endianness in status message

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 年之前
父節點
當前提交
f12fcd53b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/usr/lotest.c

+ 1
- 1
src/usr/lotest.c 查看文件

@@ -194,7 +194,7 @@ int loopback_test ( struct net_device *sender, struct net_device *receiver,
194 194
 			}
195 195
 		} else {
196 196
 			printf ( "\nReceived spurious packet type %04x\n",
197
-				 net_proto );
197
+				 ntohs ( net_proto ) );
198 198
 			/* Continue; this allows for the fact that
199 199
 			 * there may have been packets outstanding on
200 200
 			 * the wire when we started the test.

Loading…
取消
儲存