summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-10 10:27:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-10 10:27:55 +0300
commitf1b4f7590b9170e04636a66b92888163fc7cac9b (patch)
tree440b2fa1e8acf72f660cace240a6e8b2535f541f /lib
parent7b7d879160bdf9288f0546203f015b2a8e639485 (diff)
downloadlibrpm-tizen-f1b4f7590b9170e04636a66b92888163fc7cac9b.tar.gz
librpm-tizen-f1b4f7590b9170e04636a66b92888163fc7cac9b.tar.bz2
librpm-tizen-f1b4f7590b9170e04636a66b92888163fc7cac9b.zip
Fix bunch of string formatting warnings.
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmal.c10
-rw-r--r--lib/rpmgi.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/rpmal.c b/lib/rpmal.c
index 966afd075..7feedb6ec 100644
--- a/lib/rpmal.c
+++ b/lib/rpmal.c
@@ -344,7 +344,7 @@ fprintf(stderr, "*** del %p[%d]\n", al->list, pkgNum);
/*@-modfilesys@*/
if (_rpmal_debug)
-fprintf(stderr, "--- die[%5d] %p [%3d] %s\n", (die - al->dirs), die, die->dirNameLen, die->dirName);
+fprintf(stderr, "--- die[%5ld] %p [%3d] %s\n", (die - al->dirs), die, die->dirNameLen, die->dirName);
/*@=modfilesys@*/
last = die->numFiles;
@@ -357,7 +357,7 @@ fprintf(stderr, "--- die[%5d] %p [%3d] %s\n", (die - al->dirs), die, die->dirNam
if (i < die->numFiles) {
/*@-modfilesys@*/
if (_rpmal_debug)
-fprintf(stderr, "\t%p[%3d] memmove(%p:%p,%p:%p,0x%x) %s <- %s\n", die->files, die->numFiles, fie, fie->baseName, fie+1, (fie+1)->baseName, ((die->numFiles - i) * sizeof(*fie)), fie->baseName, (fie+1)->baseName);
+fprintf(stderr, "\t%p[%3d] memmove(%p:%p,%p:%p,0x%lx) %s <- %s\n", die->files, die->numFiles, fie, fie->baseName, fie+1, (fie+1)->baseName, ((die->numFiles - i) * sizeof(*fie)), fie->baseName, (fie+1)->baseName);
/*@=modfilesys@*/
/*@-bounds@*/
@@ -366,7 +366,7 @@ fprintf(stderr, "\t%p[%3d] memmove(%p:%p,%p:%p,0x%x) %s <- %s\n", die->files, di
}
/*@-modfilesys@*/
if (_rpmal_debug)
-fprintf(stderr, "\t%p[%3d] memset(%p,0,0x%x) %p [%3d] %s\n", die->files, die->numFiles, die->files + die->numFiles, sizeof(*fie), fie->baseName, fie->baseNameLen, fie->baseName);
+fprintf(stderr, "\t%p[%3d] memset(%p,0,0x%lx) %p [%3d] %s\n", die->files, die->numFiles, die->files + die->numFiles, sizeof(*fie), fie->baseName, fie->baseNameLen, fie->baseName);
/*@=modfilesys@*/
memset(die->files + die->numFiles, 0, sizeof(*fie)); /* overkill */
@@ -383,7 +383,7 @@ fprintf(stderr, "\t%p[%3d] memset(%p,0,0x%x) %p [%3d] %s\n", die->files, die->nu
if ((die - al->dirs) < al->numDirs) {
/*@-modfilesys@*/
if (_rpmal_debug)
-fprintf(stderr, " die[%5d] memmove(%p,%p,0x%x)\n", (die - al->dirs), die, die+1, ((al->numDirs - (die - al->dirs)) * sizeof(*die)));
+fprintf(stderr, " die[%5ld] memmove(%p,%p,0x%lx)\n", (die - al->dirs), die, die+1, ((al->numDirs - (die - al->dirs)) * sizeof(*die)));
/*@=modfilesys@*/
/*@-bounds@*/
@@ -393,7 +393,7 @@ fprintf(stderr, " die[%5d] memmove(%p,%p,0x%x)\n", (die - al->dirs), die, die
/*@-modfilesys@*/
if (_rpmal_debug)
-fprintf(stderr, " die[%5d] memset(%p,0,0x%x)\n", al->numDirs, al->dirs + al->numDirs, sizeof(*die));
+fprintf(stderr, " die[%5d] memset(%p,0,0x%lx)\n", al->numDirs, al->dirs + al->numDirs, sizeof(*die));
/*@=modfilesys@*/
memset(al->dirs + al->numDirs, 0, sizeof(*al->dirs)); /* overkill */
}
diff --git a/lib/rpmgi.c b/lib/rpmgi.c
index 11ab8f630..7791a9684 100644
--- a/lib/rpmgi.c
+++ b/lib/rpmgi.c
@@ -364,7 +364,7 @@ fprintf(stderr, "*** gi %p\tmi %p\n", gi, gi->mi);
if (!res) {
if (_rpmgi_debug < 0)
-fprintf(stderr, "\tav %p[%d]: \"%s\" -> %s ~= \"%s\"\n", gi->argv, (av - gi->argv), *av, tagName(tag), pat);
+fprintf(stderr, "\tav %p[%ld]: \"%s\" -> %s ~= \"%s\"\n", gi->argv, (av - gi->argv), *av, tagName(tag), pat);
res = rpmdbSetIteratorRE(gi->mi, tag, RPMMIRE_DEFAULT, pat);
}
a = _free(a);