[ovs-dev] [PATCH] reconnect: Fix printf() format warning.
Ethan Jackson
ethan at nicira.com
Thu Mar 10 18:23:01 UTC 2011
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/test-reconnect.c b/tests/test-reconnect.c
index 2d654ff..a519d35 100644
--- a/tests/test-reconnect.c
+++ b/tests/test-reconnect.c
@@ -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);
}
}
--
1.7.4.1
More information about the dev
mailing list