summaryrefslogtreecommitdiffstats
path: root/notmuch-new.c
diff options
context:
space:
mode:
authorPiotr Trojanek <piotr.trojanek@gmail.com>2017-06-16 23:50:25 +0100
committerDavid Bremner <david@tethera.net>2017-06-25 09:39:35 -0300
commit85c830405886207196aedbd0a2b757b227ba769d (patch)
treecdcf550a58d7e07a3b7a3ee8a42179f526cfe973 /notmuch-new.c
parent410b96080ceec15ced70e684115f604380c5b4f6 (diff)
fix wrong printf formatting of signed/unsigned integers
Diffstat (limited to 'notmuch-new.c')
-rw-r--r--notmuch-new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-new.c b/notmuch-new.c
index 4d40f3d0..3a60f7ca 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -131,10 +131,10 @@ generic_print_progress (const char *action, const char *object,
elapsed_overall = notmuch_time_elapsed (tv_start, tv_now);
rate_overall = processed / elapsed_overall;
- printf ("%s %d ", action, processed);
+ printf ("%s %u ", action, processed);
if (total) {
- printf ("of %d %s", total, object);
+ printf ("of %u %s", total, object);
if (processed > 0 && elapsed_overall > 0.5) {
double time_remaining = ((total - processed) / rate_overall);
printf (" (");