aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-05-04 06:12:55 -0400
committerMike Frysinger <vapier@gentoo.org>2015-05-04 06:12:55 -0400
commit7eb77555f12823a7b5763122b6817fb66eb2a89f (patch)
tree52541c02a11cb4602ab98d7a6d3b0d4bedb4aa91 /qxpak.c
parenttests: qmerge: fix running in nocolor mode (diff)
downloadportage-utils-7eb77555f12823a7b5763122b6817fb66eb2a89f.tar.gz
portage-utils-7eb77555f12823a7b5763122b6817fb66eb2a89f.tar.bz2
portage-utils-7eb77555f12823a7b5763122b6817fb66eb2a89f.zip
qcheck/qlop/qmerge/qxpak: fix spurious trailing u
The PRIu64 constant doesn't need its own "u" format as it's built in. For qcheck, this meant we generated invalid CONTENTS when updating. For the rest, it meant we had weird user facing output. Take this opportunity to add a qcheck testsuite. URL: https://bugs.gentoo.org/548262 Reported-by: Johnny Wezel <dev-jay@wezel.name>
Diffstat (limited to 'qxpak.c')
-rw-r--r--qxpak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qxpak.c b/qxpak.c
index 9a2e11b9..d7cec6f6 100644
--- a/qxpak.c
+++ b/qxpak.c
@@ -283,7 +283,7 @@ _xpak_add_file(int dir_fd, const char *filename, struct stat *st, FILE *findex,
/* the xpak format can only store files whose size is a 32bit int
* so we have to make sure we don't store a big file */
if (in_len != st->st_size) {
- warnf("File is too big: %"PRIu64"u", (uint64_t)st->st_size);
+ warnf("File is too big: %"PRIu64, (uint64_t)st->st_size);
fclose(fin);
goto fake_data_len;
}