diff options
| author | Mark Wielaard <[email protected]> | 2016-01-08 16:45:12 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-01-08 16:45:15 +0100 |
| commit | 3a5fc51573ae88a06d2050ef8425336e23013852 (patch) | |
| tree | dca3c0a35cc31e1251dbfe664c21f2e73c92a3f7 /tests | |
| parent | 7930054cf5628e779ceadac68cf59689ddc37cf7 (diff) | |
Fix build on 32bit systems.
size_t has a different size on 32 and 64 bit systems.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 4 | ||||
| -rw-r--r-- | tests/elfputzdata.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 453c4186..3d9353c4 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,9 @@ 2016-01-08 Mark Wielaard <[email protected]> + * elfputzdata.c (main): Use PRId64 to print 64 bit value. + +2016-01-08 Mark Wielaard <[email protected]> + * Makefile.am (TESTS): Always unconditionally add run-readelf-zdebug.sh and run-readelf-zdebug-rel.sh. diff --git a/tests/elfputzdata.c b/tests/elfputzdata.c index 7e6f0114..67c60908 100644 --- a/tests/elfputzdata.c +++ b/tests/elfputzdata.c @@ -90,7 +90,7 @@ main (int argc, char *argv[]) else { size_t orig_size = shdr->sh_size; - printf ("Lets compress %zd %s, size: %zd\n", + printf ("Lets compress %zd %s, size: %" PRId64 "\n", idx, name, shdr->sh_size); Elf_Data *d = elf_getdata (scn, NULL); if (d == NULL) |
