diff options
author | Alon Levy <alevy@redhat.com> | 2011-11-10 16:25:18 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-11-10 16:25:18 +0200 |
commit | ebfa95cd4777ce3f0fcf3b6866bd30f643854809 (patch) | |
tree | 894f84d758ad3c2b9d7fcde1c44c406e8d75373d | |
parent | 1b8a8b25179d8fb0303f999bf8f5aff55d3945a8 (diff) | |
download | spice-ebfa95cd4777ce3f0fcf3b6866bd30f643854809.tar.gz spice-ebfa95cd4777ce3f0fcf3b6866bd30f643854809.tar.xz spice-ebfa95cd4777ce3f0fcf3b6866bd30f643854809.zip |
server/main_channel: use PRIu64 where needed
-rw-r--r-- | server/main_channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <config.h> #endif +#include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <unistd.h> @@ -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, |