summaryrefslogtreecommitdiffstats
path: root/src/elfcompress.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2016-01-08 16:45:12 +0100
committerMark Wielaard <mjw@redhat.com>2016-01-08 16:45:15 +0100
commit3a5fc51573ae88a06d2050ef8425336e23013852 (patch)
treedca3c0a35cc31e1251dbfe664c21f2e73c92a3f7 /src/elfcompress.c
parent7930054cf5628e779ceadac68cf59689ddc37cf7 (diff)
downloadandroid_external_elfutils-3a5fc51573ae88a06d2050ef8425336e23013852.tar.gz
android_external_elfutils-3a5fc51573ae88a06d2050ef8425336e23013852.tar.bz2
android_external_elfutils-3a5fc51573ae88a06d2050ef8425336e23013852.zip
Fix build on 32bit systems.
size_t has a different size on 32 and 64 bit systems. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'src/elfcompress.c')
-rw-r--r--src/elfcompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfcompress.c b/src/elfcompress.c
index 5be2375d..23939db8 100644
--- a/src/elfcompress.c
+++ b/src/elfcompress.c
@@ -237,7 +237,7 @@ compress_section (Elf_Scn *scn, size_t orig_size, const char *name,
}
float new = shdr->sh_size;
float orig = orig_size ?: 1;
- printf (" (%" PRIu64 " => %" PRIu64 " %.2f%%)\n",
+ printf (" (%zu => %" PRIu64 " %.2f%%)\n",
orig_size, shdr->sh_size, (new / orig) * 100);
}
}