diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-03 16:35:38 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-04 09:52:34 +0200 |
commit | d07338d17d0395b3df13e78472c283b0e4851c82 (patch) | |
tree | 211be7d6e33f792188d87b3ef791c9db3a6158e8 /SpiceXPI/src | |
parent | a4e573924e497ca4069e8f5de9506bb9580073b8 (diff) |
Fix printf-format string
Use %z modifier for ssize_t variables, and for an uint32_t variable,
the %l modifier shouldn't be neeeded.
Diffstat (limited to 'SpiceXPI/src')
-rw-r--r-- | SpiceXPI/src/plugin/controller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SpiceXPI/src/plugin/controller.cpp b/SpiceXPI/src/plugin/controller.cpp index 4c6ce9f..b912c27 100644 --- a/SpiceXPI/src/plugin/controller.cpp +++ b/SpiceXPI/src/plugin/controller.cpp @@ -146,7 +146,7 @@ uint32_t SpiceController::Write(const void *lpBuffer, uint32_t nBytesToWrite) if (len != (ssize_t)nBytesToWrite) { - g_warning("incomplete send, bytes to write = %lu, bytes written = %d: %s", + g_warning("incomplete send, bytes to write = %u, bytes written = %zd: %s", nBytesToWrite, len, g_strerror(errno)); } |