diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-27 13:49:48 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-27 13:49:48 +0300 |
commit | 5f42506680ce69837d4708d38b27a7cfe346b024 (patch) | |
tree | 423ffcc22a289b3dbf80f13b102332586086ec80 | |
parent | 8b6f82feecf0b5206eff998b07e8958962190513 (diff) | |
download | librpm-tizen-5f42506680ce69837d4708d38b27a7cfe346b024.tar.gz librpm-tizen-5f42506680ce69837d4708d38b27a7cfe346b024.tar.bz2 librpm-tizen-5f42506680ce69837d4708d38b27a7cfe346b024.zip |
Use correct formatters for debug-printing sizes in printSize()
- on x86_64 size_t happens to be 64bit, not so on x86...
-rw-r--r-- | lib/signature.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/signature.c b/lib/signature.c index 29bb3c3d8..19906abf2 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -4,6 +4,7 @@ #include "system.h" +#include <inttypes.h> #include <popt.h> #include <rpm/rpmtypes.h> @@ -126,11 +127,12 @@ static inline rpmRC printSize(FD_t fd, size_t siglen, size_t pad, rpm_loff_t dat return RPMRC_FAIL; rpmlog(RPMLOG_DEBUG, - "Expected size: %12zd = lead(%d)+sigs(%zd)+pad(%zd)+data(%llu)\n", + "Expected size: %12" PRIu64 \ + " = lead(%d)+sigs(%zd)+pad(%zd)+data(%" PRIu64 ")\n", RPMLEAD_SIZE+siglen+pad+datalen, - RPMLEAD_SIZE, siglen, pad, (long long) datalen); + RPMLEAD_SIZE, siglen, pad, datalen); rpmlog(RPMLOG_DEBUG, - " Actual size: %12llu\n", (long long)st.st_size); + " Actual size: %12" PRIu64 "\n", (rpm_loff_t) st.st_size); return RPMRC_OK; } |