* Error compiling libctf-regression test
@ 2024-04-20 1:43 Alan Modra
2024-04-20 10:51 ` Nick Alcock
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2024-04-20 1:43 UTC (permalink / raw)
To: binutils
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 --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;
}
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error compiling libctf-regression test
2024-04-20 1:43 Error compiling libctf-regression test Alan Modra
@ 2024-04-20 10:51 ` Nick Alcock
0 siblings, 0 replies; 2+ messages in thread
From: Nick Alcock @ 2024-04-20 10:51 UTC (permalink / raw)
To: Alan Modra; +Cc: binutils
On 20 Apr 2024, Alan Modra stated:
> Seen on 64-bit targets.
Interesting. I compile on a number of those targets and never saw this...
> 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.
... but this is obviously correct anyway, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-20 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-20 1:43 Error compiling libctf-regression test Alan Modra
2024-04-20 10:51 ` Nick Alcock
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).