1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-29 19:48:19 +00:00

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.
This commit is contained in:
Po Lu 2022-09-10 09:35:49 +08:00
parent e6dc0cf2d3
commit a1f1072975
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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);
}