public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Error compiling libctf-regression test
@ 2024-04-20  1:43 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2024-04-20  1:43 UTC (permalink / raw)
  To: binutils-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=02fa4bbec1974df262f44e13023071f5ae4fc9b1

commit 02fa4bbec1974df262f44e13023071f5ae4fc9b1
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Apr 20 10:03:09 2024 +0930

    Error compiling libctf-regression test
    
    Seen on 64-bit targets.
    ERROR: compilation of lookup program .../libctf-regression/gzrewrite.c failed
    
            * testsuite/libctf-regression/gzrewrite.c (main): Use %zu to
            print size_t values.
            * testsuite/libctf-regression/zrewrite.c (main): Likewise.

Diff:
---
 libctf/testsuite/libctf-regression/gzrewrite.c | 2 +-
 libctf/testsuite/libctf-regression/zrewrite.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libctf/testsuite/libctf-regression/gzrewrite.c b/libctf/testsuite/libctf-regression/gzrewrite.c
index 8e279ca3fac..99722200950 100644
--- a/libctf/testsuite/libctf-regression/gzrewrite.c
+++ b/libctf/testsuite/libctf-regression/gzrewrite.c
@@ -88,7 +88,7 @@ main (int argc, char *argv[])
 
   if (a_len != b_len || memcmp (a, b, a_len) != 0)
     {
-      fprintf (stderr, "consecutive gzwrites are different: lengths %i and %i\n", a_len, b_len);
+      fprintf (stderr, "consecutive gzwrites are different: lengths %zu and %zu\n", a_len, b_len);
       return 1;
     }
 
diff --git a/libctf/testsuite/libctf-regression/zrewrite.c b/libctf/testsuite/libctf-regression/zrewrite.c
index 4d5d15e7985..a88c824b568 100644
--- a/libctf/testsuite/libctf-regression/zrewrite.c
+++ b/libctf/testsuite/libctf-regression/zrewrite.c
@@ -83,7 +83,7 @@ main (int argc, char *argv[])
 
   if (a_len != b_len || memcmp (a, b, a_len) != 0)
     {
-      fprintf (stderr, "consecutive compress_writes are different: lengths %i and %i\n", a_len, b_len);
+      fprintf (stderr, "consecutive compress_writes are different: lengths %zu and %zu\n", a_len, b_len);
       return 1;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-20  1:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-20  1:43 [binutils-gdb] Error compiling libctf-regression test Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).