Просмотр исходного кода

[lotest] Fix endianness in status message

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 15 лет назад
Родитель
Сommit
f12fcd53b1
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      src/usr/lotest.c

+ 1
- 1
src/usr/lotest.c Просмотреть файл

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

Загрузка…
Отмена
Сохранить