aboutsummaryrefslogtreecommitdiff
path: root/qlop.c
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 /qlop.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 'qlop.c')
-rw-r--r--qlop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qlop.c b/qlop.c
index d5e2226d..a2541e2a 100644
--- a/qlop.c
+++ b/qlop.c
@@ -208,7 +208,7 @@ show_merge_times(char *package, const char *logfile, int average, char human_rea
if (human_readable)
print_seconds_for_earthlings(t[1] - t[0]);
else
- printf("%s%"PRIu64"u%s seconds", GREEN, (uint64_t)(t[1] - t[0]), NORM);
+ printf("%s%"PRIu64"%s seconds", GREEN, (uint64_t)(t[1] - t[0]), NORM);
puts("");
}
merge_time += (t[1] - t[0]);