PR 31882 libctf: test suite incorrect format specifiers

This commit is contained in:
A. Wilcox
2024-06-11 21:40:00 +00:00
committed by Alan Modra
parent b7641ae1af
commit 7065d0a33f
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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;