[Spice-devel] [PATCH] Server: Changed uint64_t printing format from "%ld" to "%lld"
Rami Vaknin
rvaknin at redhat.com
Sun Jul 3 06:27:57 PDT 2011
From: root <root at fed15.localdomain>
Compiling with gcc-c++-4.6.0-9.fc15.i686 on Fedora 15
---
server/main_channel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/main_channel.c b/server/main_channel.c
index 1a6a89c..c7a70d7 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -733,12 +733,12 @@ static int main_channel_handle_parsed(RedChannel *channel, uint32_t size, uint16
if (roundtrip <= latency) {
// probably high load on client or server result with incorrect values
latency = 0;
- red_printf("net test: invalid values, latency %lu roundtrip %lu. assuming high"
+ red_printf("net test: invalid values, latency %llu roundtrip %llu. assuming high"
"bandwidth", latency, roundtrip);
break;
}
bitrate_per_sec = (uint64_t)(NET_TEST_BYTES * 8) * 1000000 / (roundtrip - latency);
- red_printf("net test: latency %f ms, bitrate %lu bps (%f Mbps)%s",
+ red_printf("net test: latency %f ms, bitrate %llu bps (%f Mbps)%s",
(double)latency / 1000,
bitrate_per_sec,
(double)bitrate_per_sec / 1024 / 1024,
--
1.7.5.4
More information about the Spice-devel
mailing list