summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-05-15 11:32:09 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-05-15 11:33:09 +0200
commitd1a1df640c9b9fea5390996c6d2069cc6710dcf0 (patch)
treee9a1713fe350c93489f18aecfe6f0f997637e3ed
parentece9df86a81e425821f513df258c0f40c6faf214 (diff)
Fix printf format string warning
When doing a mingw32 build, I hit the following warning (which became an error because of -Werror): channel-display.c: In function 'destroy_stream': channel-display.c:1546:9: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint64_t' [-Werror=format=] CHANNEL_DEBUG(channel, "%s: drops total duration %lu ==>", __FUNCTION__, drops_duration_total); ^
-rw-r--r--gtk/channel-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index 5fb3cac..bc6fc08 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -1510,7 +1510,7 @@ static void destroy_stream(SpiceChannel *channel, int id)
{
SpiceDisplayChannelPrivate *c = SPICE_DISPLAY_CHANNEL(channel)->priv;
display_stream *st;
- uint64_t drops_duration_total = 0;
+ guint64 drops_duration_total = 0;
int i;
g_return_if_fail(c != NULL);
@@ -1543,7 +1543,7 @@ static void destroy_stream(SpiceChannel *channel, int id)
stats->duration);
}
if (st->num_drops_seqs) {
- CHANNEL_DEBUG(channel, "%s: drops total duration %lu ==>", __FUNCTION__, drops_duration_total);
+ CHANNEL_DEBUG(channel, "%s: drops total duration %"G_GUINT64_FORMAT" ==>", __FUNCTION__, drops_duration_total);
}
g_array_free(st->drops_seqs_stats_arr, TRUE);