]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sprof: fix -Wformat warnings on 32-bit hosts
authorCollin Funk <collin.funk1@gmail.com>
Wed, 22 Oct 2025 08:51:09 +0000 (01:51 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 22 Oct 2025 16:48:44 +0000 (09:48 -0700)
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
elf/sprof.c

index e9d2a66a4f9ba4f22478a0140740189e07d1c824..513e0470b2cd4d1f87d993067b85dd130e796eb2 100644 (file)
@@ -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.  */