Commit 23decc87cc5e52eb3021cf05b64347b884698b17

Authored by aliguori
1 parent 6baebed7

vnc: fix printf warnings showing up with VNC_DEBUG enabled. (Gerd Hoffmann)


Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6861 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
... ... @@ -957,7 +957,7 @@ long vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen)
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,7 +977,7 @@ static long vnc_client_write_plain(VncState *vs)
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,7 +1062,7 @@ long vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen)
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,7 +1078,7 @@ long vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen)
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);
... ...