From: Руслан Ижбулатов Date: Sat, 25 Feb 2017 12:48:30 +0000 (+0000) Subject: W32: Fix wrong format strings X-Git-Tag: taler-0.2.1~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dabc6958b35c325a727520f3e68d67bf03c31d61;p=oweals%2Fgnunet.git W32: Fix wrong format strings --- diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index 8a047c9fd..33de2aab6 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c @@ -473,7 +473,7 @@ process_lookup_result (void *cls, if ((char *) ptr - (char *) msg != size || size_recalc != size || size_recalc != ((char *) ptr - (char *) msg)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Error in WSAQUERYSETW size calc: expected %lu, got %lu (recalc %lu)\n", + "Error in WSAQUERYSETW size calc: expected %u, got %lu (recalc %u)\n", size, (unsigned long) ((char *) ptr - (char *) msg), size_recalc); @@ -528,7 +528,7 @@ get_ip_from_hostname (struct GNUNET_SERVICE_Client *client, else { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Unknown GUID: %08X-%04X-%04X-%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X\n", + "Unknown GUID: %08lX-%04X-%04X-%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X\n", sc.Data1, sc.Data2, sc.Data3, @@ -674,7 +674,7 @@ handle_get (void *cls, for (int i = 0; i < 8; i++) sc.Data4[i] = msg->sc_data4[i]; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Got GUID: %08X-%04X-%04X-%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X\n", + "Got GUID: %08lX-%04X-%04X-%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X\n", sc.Data1, sc.Data2, sc.Data3, diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 6888f9b83..b33539742 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -1229,7 +1229,7 @@ start_process (int pipe_control, if (sizeof (count) != wrote) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed to write %u count bytes to the child: %u\n", + "Failed to write %u count bytes to the child: %lu\n", sizeof (count), GetLastError ()); break; } @@ -1240,7 +1240,7 @@ start_process (int pipe_control, if (SOCKET_ERROR == WSADuplicateSocketA (lsocks[i], gnunet_proc->pid, &pi)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed to duplicate an socket[%llu]: %u\n", i, + "Failed to duplicate an socket[%u]: %lu\n", i, GetLastError ()); break; } @@ -1257,7 +1257,7 @@ start_process (int pipe_control, if (sizeof (size) != wrote) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed to write %u size[%llu] bytes to the child: %u\n", + "Failed to write %u size[%u] bytes to the child: %lu\n", sizeof (size), i, GetLastError ()); break; } @@ -1266,7 +1266,7 @@ start_process (int pipe_control, if (sizeof (pi) != wrote) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed to write %u socket[%llu] bytes to the child: %u\n", + "Failed to write %u socket[%u] bytes to the child: %lu\n", sizeof (pi), i, GetLastError ()); break; }