From aa376ad638c26ad3211c3949fe5afbeb8a2bef17 Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Sun, 28 Nov 2021 15:25:45 -0500 Subject: [PATCH] * src/commands.c (fatal_error_signal) [W32]: Use %lu for DWORD. * src/function.c (windows32_openpipe) [W32]: Ditto. Copyright-paperwork-exempt: yes --- src/commands.c | 4 ++-- src/function.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands.c b/src/commands.c index 8a483bdd..cacbfc86 100644 --- a/src/commands.c +++ b/src/commands.c @@ -515,12 +515,12 @@ fatal_error_signal (int sig) DWORD susp_count = SuspendThread (main_thread); if (susp_count != 0) - fprintf (stderr, "SuspendThread: suspend count = %ld\n", susp_count); + fprintf (stderr, "SuspendThread: suspend count = %lu\n", susp_count); else if (susp_count == (DWORD)-1) { DWORD ierr = GetLastError (); - fprintf (stderr, "SuspendThread: error %ld: %s\n", + fprintf (stderr, "SuspendThread: error %lu: %s\n", ierr, map_windows32_error_to_string (ierr)); } } diff --git a/src/function.c b/src/function.c index 75aa1ca6..0f9b6091 100644 --- a/src/function.c +++ b/src/function.c @@ -1644,7 +1644,7 @@ windows32_openpipe (int *pipedes, int errfd, pid_t *pid_p, char **command_argv, if (hIn == INVALID_HANDLE_VALUE) { ON (error, NILF, - _("windows32_openpipe: DuplicateHandle(In) failed (e=%ld)\n"), e); + _("windows32_openpipe: DuplicateHandle(In) failed (e=%lu)\n"), e); return -1; } } @@ -1668,14 +1668,14 @@ windows32_openpipe (int *pipedes, int errfd, pid_t *pid_p, char **command_argv, if (hErr == INVALID_HANDLE_VALUE) { ON (error, NILF, - _("windows32_openpipe: DuplicateHandle(Err) failed (e=%ld)\n"), e); + _("windows32_openpipe: DuplicateHandle(Err) failed (e=%lu)\n"), e); return -1; } } if (! CreatePipe (&hChildOutRd, &hChildOutWr, &saAttr, 0)) { - ON (error, NILF, _("CreatePipe() failed (e=%ld)\n"), GetLastError()); + ON (error, NILF, _("CreatePipe() failed (e=%lu)\n"), GetLastError()); return -1; }