[binutils-gdb] PR 31882 libctf: test suite incorrect format specifiers
Alan Modra
amodra@sourceware.org
Wed Jun 12 07:06:51 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7065d0a33f732b7f0527f83ec0a352634b2d1ace
commit 7065d0a33f732b7f0527f83ec0a352634b2d1ace
Author: A. Wilcox <awilfox@adelielinux.org>
Date: Tue Jun 11 21:40:00 2024 +0000
PR 31882 libctf: test suite incorrect format specifiers
Diff:
---
libctf/testsuite/libctf-lookup/struct-iteration.c | 2 +-
libctf/testsuite/libctf-lookup/unnamed-field-info.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libctf/testsuite/libctf-lookup/struct-iteration.c b/libctf/testsuite/libctf-lookup/struct-iteration.c
index 005aba124d4..b2408648e7e 100644
--- a/libctf/testsuite/libctf-lookup/struct-iteration.c
+++ b/libctf/testsuite/libctf-lookup/struct-iteration.c
@@ -53,7 +53,7 @@ main (int argc, char *argv[])
{
char *type_name = ctf_type_aname (fp, membtype);
- printf ("next test: %s, offset %lx, has type %lx/%s\n",
+ printf ("next test: %s, offset %zx, has type %lx/%s\n",
name, offset, membtype, type_name);
free (type_name);
}
diff --git a/libctf/testsuite/libctf-lookup/unnamed-field-info.c b/libctf/testsuite/libctf-lookup/unnamed-field-info.c
index 9abe8b026bb..039df643ab0 100644
--- a/libctf/testsuite/libctf-lookup/unnamed-field-info.c
+++ b/libctf/testsuite/libctf-lookup/unnamed-field-info.c
@@ -16,7 +16,7 @@ verify_offsetof_matching (ctf_dict_t *fp, ctf_id_t type, const char *name, size_
goto err;
if (mi.ctm_offset != offset * 8)
- fprintf (stderr, "field %s inconsistency: offsetof() says %zi bits, CTF says %zi\n",
+ fprintf (stderr, "field %s inconsistency: offsetof() says %zi bits, CTF says %li\n",
name, offset * 8, mi.ctm_offset);
return;
More information about the Binutils-cvs
mailing list