diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-04 06:12:55 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-05-04 06:12:55 -0400 |
commit | 7eb77555f12823a7b5763122b6817fb66eb2a89f (patch) | |
tree | 52541c02a11cb4602ab98d7a6d3b0d4bedb4aa91 /qxpak.c | |
parent | tests: qmerge: fix running in nocolor mode (diff) | |
download | portage-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |