]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix several printfs for 32 bit systems
authorPo Lu <luangruo@yahoo.com>
Sat, 10 Sep 2022 01:35:49 +0000 (09:35 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 10 Sep 2022 01:35:49 +0000 (09:35 +0800)
* lib-src/emacsclient.c (main): Use right length modifier when
printing uintmax_t.
* src/alloc.c (check_pure_size): Use right length modifier when
printing ptrdiff_t.

lib-src/emacsclient.c
src/alloc.c

index 88800b9b2e9874f3b5cc979ca3d2ad25af0a8352..425db8cfacea8080532b2edb134d4f0ea2eed56f 100644 (file)
@@ -2161,7 +2161,7 @@ main (int argc, char **argv)
              if (timeout > 0)
                {
                  /* Don't retry if we were given a --timeout flag.  */
-                 fprintf (stderr, "\nServer not responding; timed out after %lu seconds",
+                 fprintf (stderr, "\nServer not responding; timed out after %ju seconds",
                           timeout);
                  retry = false;
                }
index 34bedac36ba18e0d857f1d59206ef0fdd19ca24c..7183c9ffa86e6b0bc8a1fb3a9320777e9d716d1b 100644 (file)
@@ -5368,7 +5368,7 @@ void
 check_pure_size (void)
 {
   if (pure_bytes_used_before_overflow)
-    message (("emacs:0:Pure Lisp storage overflow (approx. %"pI"d"
+    message (("emacs:0:Pure Lisp storage overflow (approx. %"pD"d"
              " bytes needed)"),
             pure_bytes_used + pure_bytes_used_before_overflow);
 }