summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-14 12:25:01 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-10-14 12:25:01 +0300
commite2749795c3ae35f99092634fd859cba93f23156d (patch)
tree159997a59679f69803d78afa7a503d9a5cb94d8e /lib/rpmps.c
parent19027cb53f3e559cca3d0ddc4e193fab37840d96 (diff)
downloadrpm-e2749795c3ae35f99092634fd859cba93f23156d.tar.gz
Use PRIu64 for 64bit value formatting instead of casting
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index fffa9a520..871cdeeb3 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -4,6 +4,8 @@
#include "system.h"
+#include <inttypes.h>
+
#include <rpm/rpmstring.h>
#include <rpm/rpmps.h>
@@ -319,7 +321,7 @@ char * rpmProblemString(const rpmProblem prob)
break;
case RPMPROB_DISKSPACE:
rc = rasprintf(&buf,
- _("installing package %s needs %llu%cB on the %s filesystem"),
+ _("installing package %s needs %" PRIu64 "%cB on the %s filesystem"),
pkgNEVR,
prob->num1 > (1024*1024)
? (prob->num1 + 1024 * 1024 - 1) / (1024 * 1024)
@@ -329,8 +331,8 @@ char * rpmProblemString(const rpmProblem prob)
break;
case RPMPROB_DISKNODES:
rc = rasprintf(&buf,
- _("installing package %s needs %llu inodes on the %s filesystem"),
- pkgNEVR, (long long)prob->num1, str1);
+ _("installing package %s needs %" PRIu64 " inodes on the %s filesystem"),
+ pkgNEVR, prob->num1, str1);
break;
case RPMPROB_REQUIRES:
rc = rasprintf(&buf, _("%s is needed by %s%s"),