reconnect: Fix printf() format warning.
authorEthan Jackson <ethan@nicira.com>
Thu, 10 Mar 2011 18:21:13 +0000 (10:21 -0800)
committerEthan Jackson <ethan@nicira.com>
Thu, 10 Mar 2011 18:26:13 +0000 (10:26 -0800)
tests/test-reconnect.c:245:9: error: format '%llu' expects type
'long long unsigned int', but argument 2 has type 'unsigned int'

tests/test-reconnect.c

index 2d654ff8a72499214e26e2aae16cd02b612cf8ce..a519d3524dbac3e4a578800e561e19f12d4d02ae 100644 (file)
@@ -242,7 +242,7 @@ diff_stats(const struct reconnect_stats *old,
                new->last_disconnected, new->current_disconnect_duration);
     }
     if (old->current_disconnect_duration != new->current_disconnect_duration) {
-        printf("  disconnected for %llu ms\n", new->current_disconnect_duration);
+        printf("  disconnected for %u ms\n", new->current_disconnect_duration);
     }
 }