[binutils-gdb] sframe: Minor format string fix in sframe_decode
Indu Bhagat
ibhagat@sourceware.org
Thu Nov 6 22:52:05 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=84402f09dd22dad78b8ab7b2aa162a2374576747
commit 84402f09dd22dad78b8ab7b2aa162a2374576747
Author: Jan Dubiec <jdx@o2.pl>
Date: Thu Nov 6 14:37:24 2025 -0800
sframe: Minor format string fix in sframe_decode
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>
Diff:
---
libsframe/sframe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index dfff1b3490a..d8ea1d67b94 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -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);
More information about the Binutils-cvs
mailing list