From a1f1072975cdb7b3f80d1d0e0030f2b28171d0ed Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 10 Sep 2022 09:35:49 +0800 Subject: [PATCH] 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. --- lib-src/emacsclient.c | 2 +- src/alloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2