[Spice-devel] [PATCH] Server: Changed uint64_t printing format from "%ld" to "%lld"
Uri Lublin
uril at redhat.com
Sun Jul 3 23:37:53 PDT 2011
On 07/03/2011 04:27 PM, Rami Vaknin wrote:
> 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"
The spice server is compiled for 64 bit machines (at least currently).
Try compiling with gcc-c++-*.fc15.x86_64
More information about the Spice-devel
mailing list