mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
PR 31882 libctf: test suite incorrect format specifiers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user