diff options
author | Alan Modra <amodra@gmail.com> | 2024-04-20 10:03:09 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-20 10:36:37 +0930 |
commit | 02fa4bbec1974df262f44e13023071f5ae4fc9b1 (patch) | |
tree | 81a9ad9bb56d0fa5b95158ad4dca0c090637d269 /libctf/testsuite | |
parent | 37163076825cdf4bf49829ee3a516c29f8333335 (diff) | |
download | gdb-02fa4bbec1974df262f44e13023071f5ae4fc9b1.zip gdb-02fa4bbec1974df262f44e13023071f5ae4fc9b1.tar.gz gdb-02fa4bbec1974df262f44e13023071f5ae4fc9b1.tar.bz2 |
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.
Diffstat (limited to 'libctf/testsuite')
-rw-r--r-- | libctf/testsuite/libctf-regression/gzrewrite.c | 2 | ||||
-rw-r--r-- | 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 8e279ca..9972220 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 4d5d15e..a88c824 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; } |