From ebfa95cd4777ce3f0fcf3b6866bd30f643854809 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 10 Nov 2011 16:25:18 +0200 Subject: server/main_channel: use PRIu64 where needed --- server/main_channel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/main_channel.c b/server/main_channel.c index 24cdaeaf..0ce3b486 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -19,6 +19,7 @@ #include #endif +#include #include #include #include @@ -802,13 +803,14 @@ static int main_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, uint if (roundtrip <= mcc->latency) { // probably high load on client or server result with incorrect values mcc->latency = 0; - red_printf("net test: invalid values, latency %lu roundtrip %lu. assuming high" + red_printf("net test: invalid values, latency %" PRIu64 + " roundtrip %" PRIu64 ". assuming high" "bandwidth", mcc->latency, roundtrip); break; } mcc->bitrate_per_sec = (uint64_t)(NET_TEST_BYTES * 8) * 1000000 / (roundtrip - mcc->latency); - red_printf("net test: latency %f ms, bitrate %lu bps (%f Mbps)%s", + red_printf("net test: latency %f ms, bitrate %"PRIu64" bps (%f Mbps)%s", (double)mcc->latency / 1000, mcc->bitrate_per_sec, (double)mcc->bitrate_per_sec / 1024 / 1024, -- cgit