]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
fix wrong printf formatting of signed/unsigned integers
[notmuch] / notmuch-new.c
index 4d40f3d08e31fb2fe5c1553586a4b8033fd5cd00..3a60f7cae47fee568d8002f5db178b6ea7587d7a 100644 (file)
@@ -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 (" (");