]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR 31882 libctf: test suite incorrect format specifiers
authorA. Wilcox <awilfox@adelielinux.org>
Tue, 11 Jun 2024 21:40:00 +0000 (21:40 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Jun 2024 03:46:27 +0000 (13:16 +0930)
libctf/testsuite/libctf-lookup/struct-iteration.c
libctf/testsuite/libctf-lookup/unnamed-field-info.c

index 005aba124d4c7b6c44568185656d88adc8a4b414..b2408648e7e224c4f5fbef327c3de931005a625f 100644 (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);
     }
index 9abe8b026bbac24680e291b2bfb8244efc9bf412..039df643ab05391de20b10b7b5eb7f65a8948d95 100644 (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;