Revision 23decc87

b/vnc.c
957 957
    } else
958 958
#endif /* CONFIG_VNC_TLS */
959 959
        ret = send(vs->csock, data, datalen, 0);
960
    VNC_DEBUG("Wrote wire %p %d -> %ld\n", data, datalen, ret);
960
    VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret);
961 961
    return vnc_client_io_error(vs, ret, socket_error());
962 962
}
963 963

  
......
977 977
    long ret;
978 978

  
979 979
#ifdef CONFIG_VNC_SASL
980
    VNC_DEBUG("Write Plain: Pending output %p size %d offset %d. Wait SSF %d\n",
980
    VNC_DEBUG("Write Plain: Pending output %p size %zd offset %zd. Wait SSF %d\n",
981 981
              vs->output.buffer, vs->output.capacity, vs->output.offset,
982 982
              vs->sasl.waitWriteSSF);
983 983

  
......
1062 1062
    } else
1063 1063
#endif /* CONFIG_VNC_TLS */
1064 1064
        ret = recv(vs->csock, data, datalen, 0);
1065
    VNC_DEBUG("Read wire %p %d -> %ld\n", data, datalen, ret);
1065
    VNC_DEBUG("Read wire %p %zd -> %ld\n", data, datalen, ret);
1066 1066
    return vnc_client_io_error(vs, ret, socket_error());
1067 1067
}
1068 1068

  
......
1078 1078
static long vnc_client_read_plain(VncState *vs)
1079 1079
{
1080 1080
    int ret;
1081
    VNC_DEBUG("Read plain %p size %d offset %d\n",
1081
    VNC_DEBUG("Read plain %p size %zd offset %zd\n",
1082 1082
              vs->input.buffer, vs->input.capacity, vs->input.offset);
1083 1083
    buffer_reserve(&vs->input, 4096);
1084 1084
    ret = vnc_client_read_buf(vs, buffer_end(&vs->input), 4096);

Also available in: Unified diff