From: Collin Funk Date: Wed, 22 Oct 2025 08:51:09 +0000 (-0700) Subject: sprof: fix -Wformat warnings on 32-bit hosts X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9681f645ba20fc3c18eb12ffebf94e3df1f888e3;p=thirdparty%2Fglibc.git sprof: fix -Wformat warnings on 32-bit hosts Reviewed-by: H.J. Lu --- diff --git a/elf/sprof.c b/elf/sprof.c index e9d2a66a4f..513e0470b2 100644 --- a/elf/sprof.c +++ b/elf/sprof.c @@ -570,8 +570,8 @@ load_shobj (const char *name) || INT_ADD_WRAPV (sz, off, &end_off) \ || end_off > st.st_size) \ error (EXIT_FAILURE, ERANGE, \ - _("read outside of file extents %zu + %zd > %zu"), \ - sz, off, st.st_size); \ + _("read outside of file extents %zu + %jd > %jd"), \ + sz, (intmax_t) off, (intmax_t) st.st_size); \ } /* Map the section header. */