1
1

Fix a couple of printf format warnings.

Also if we try to compile on an unsupported platform, emit some code
in portable_endian.h that at least has a chance of compiling, rather
than erroring out right away.

For #191.
Этот коммит содержится в:
Bruce A. Mah 2014-09-22 15:06:27 -07:00
родитель 738c4dc68f
Коммит 9fc0149e1c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -82,7 +82,7 @@ iperf_udp_recv(struct iperf_stream *sp)
sp->packet_count = pcount;
} else {
sp->outoforder_packets++;
iperf_err(sp->test, "OUT OF ORDER - incoming packet = %llu and received packet = %d AND SP = %d", pcount, sp->packet_count, sp->socket);
iperf_err(sp->test, "OUT OF ORDER - incoming packet = %zu and received packet = %d AND SP = %d", pcount, sp->packet_count, sp->socket);
}
/* jitter measurement */
@ -98,7 +98,7 @@ iperf_udp_recv(struct iperf_stream *sp)
sp->jitter += (d - sp->jitter) / 16.0;
if (sp->test->debug) {
fprintf(stderr, "packet_count %llu\n", sp->packet_count);
fprintf(stderr, "packet_count %d\n", sp->packet_count);
}
return r;

Просмотреть файл

@ -117,8 +117,10 @@
#else
# error platform not supported
# warning platform not supported
# include <sys/endian.h>
#endif
#endif