From d07338d17d0395b3df13e78472c283b0e4851c82 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 3 Apr 2012 16:35:38 +0200 Subject: Fix printf-format string Use %z modifier for ssize_t variables, and for an uint32_t variable, the %l modifier shouldn't be neeeded. --- SpiceXPI/src/plugin/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SpiceXPI/src') 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)); } -- cgit v1.2.3