Skip to content

Commit

Permalink
PR 31882 libctf: test suite incorrect format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
awilfox authored and amodra committed Jun 12, 2024
1 parent b7641ae commit 7065d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libctf/testsuite/libctf-lookup/struct-iteration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion libctf/testsuite/libctf-lookup/unnamed-field-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7065d0a

Please sign in to comment.