]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sframe: Minor format string fix in sframe_decode
authorJan Dubiec <jdx@o2.pl>
Thu, 6 Nov 2025 22:37:24 +0000 (14:37 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 6 Nov 2025 22:44:16 +0000 (14:44 -0800)
The type of fidx_size is size_t so the proper length modifier is not "l"
but "z".

libsframe/
    * sframe.c (sframe_decode): Fix format string (length modifier)
    for fidx_size.

Signed-off-by: Jan Dubiec <jdx@o2.pl>
libsframe/sframe.c

index dfff1b3490aa13a2901a06ef4b90367069fe3b9b..d8ea1d67b940c183a3bcd0ff2fb31fad5a16e495 100644 (file)
@@ -1116,7 +1116,7 @@ sframe_decode (const char *sf_buf, size_t sf_size, int *errp)
       goto decode_fail_free;
     }
 
-  debug_printf ("%lu total fidx size\n", fidx_size);
+  debug_printf ("%zu total fidx size\n", fidx_size);
 
   /* Handle the SFrame Frame Row Entry section.  */
   dctx->sfd_fres = (char *) malloc (dhp->sfh_fre_len);