From: Po Lu Date: Sat, 10 Sep 2022 01:35:49 +0000 (+0800) Subject: Fix several printfs for 32 bit systems X-Git-Tag: emacs-29.0.90~1856^2~625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a1f1072975cdb7b3f80d1d0e0030f2b28171d0ed;p=emacs.git Fix several printfs for 32 bit systems * 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. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 88800b9b2e9..425db8cface 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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; } diff --git a/src/alloc.c b/src/alloc.c index 34bedac36ba..7183c9ffa86 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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); }