|
29 | 29 | #include <assert.h>
|
30 | 30 | #include <sys/ioctl.h>
|
31 | 31 | #include <linux/random.h>
|
| 32 | +#include <inttypes.h> |
32 | 33 |
|
33 | 34 | #include <string>
|
34 | 35 | #include <memory>
|
@@ -393,7 +394,7 @@ int main(int argc, char * const *argv)
|
393 | 394 | show_usage:
|
394 | 395 | fprintf(stderr, "Usage: %s [-K tx_key] [-k RS_K] [-n RS_N] [-u udp_port] [-p radio_port] [-B bandwidth] [-G guard_interval] [-S stbc] [-L ldpc] [-M mcs_index] [-T poll_timeout] [-e epoch] [-i link_id] interface1 [interface2] ...\n",
|
395 | 396 | argv[0]);
|
396 |
| - fprintf(stderr, "Default: K='%s', k=%d, n=%d, udp_port=%d, link_id=0x%06x, radio_port=%u, epoch=%lu, bandwidth=%d guard_interval=%s stbc=%d ldpc=%d mcs_index=%d, poll_timeout=%d\n", |
| 397 | + fprintf(stderr, "Default: K='%s', k=%d, n=%d, udp_port=%d, link_id=0x%06x, radio_port=%u, epoch=%" PRIu64 ", bandwidth=%d guard_interval=%s stbc=%d ldpc=%d mcs_index=%d, poll_timeout=%d\n", |
397 | 398 | keypair.c_str(), k, n, udp_port, link_id, radio_port, epoch, bandwidth, short_gi ? "short" : "long", stbc, ldpc, mcs_index, poll_timeout);
|
398 | 399 | fprintf(stderr, "Radio MTU: %lu\n", (unsigned long)MAX_PAYLOAD_SIZE);
|
399 | 400 | fprintf(stderr, "WFB-ng version " WFB_VERSION "\n");
|
@@ -491,7 +492,7 @@ int main(int argc, char * const *argv)
|
491 | 492 |
|
492 | 493 | if(debug_port)
|
493 | 494 | {
|
494 |
| - fprintf(stderr, "Using %lu ports from %d for wlan emulation\n", wlans.size(), debug_port); |
| 495 | + fprintf(stderr, "Using %zu ports from %d for wlan emulation\n", wlans.size(), debug_port); |
495 | 496 | t = shared_ptr<UdpTransmitter>(new UdpTransmitter(k, n, keypair, "127.0.0.1", debug_port, epoch, channel_id));
|
496 | 497 | } else {
|
497 | 498 | t = shared_ptr<PcapTransmitter>(new PcapTransmitter(k, n, keypair, epoch, channel_id, wlans));
|
|
0 commit comments