]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/commands.c (fatal_error_signal) [W32]: Use %lu for DWORD.
authorU2FsdGVkX1 <u2fsdgvkx1@gmail.com>
Sun, 28 Nov 2021 20:25:45 +0000 (15:25 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 28 Nov 2021 20:51:37 +0000 (15:51 -0500)
* src/function.c (windows32_openpipe) [W32]: Ditto.

Copyright-paperwork-exempt: yes

src/commands.c
src/function.c

index 8a483bddb9eb9f0ff5579554bcbc88b9b2b55596..cacbfc86aa5f02ed06d013ea22ae097c5fa86efe 100644 (file)
@@ -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));
         }
     }
index 75aa1ca675baa0f854e645dfd2863a593c2acf7d..0f9b609152d3933ab1048b6be220079e5808c766 100644 (file)
@@ -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;
     }