diff options
author | Omar Akkila <omar.akkila@collabora.co.uk> | 2018-01-31 13:21:58 -0500 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-02-01 11:10:50 +0000 |
commit | c365ab7e667860ec654ebe94ed043be7233f3b63 (patch) | |
tree | 5242272482fd73cfec6006a9035d27daf879f10b /gst | |
parent | 4167b02050a66b31ee27885f421923fbcdfc5d83 (diff) |
netsim: fix format errors for different platforms
https://bugzilla.gnome.org/show_bug.cgi?id=793073
Diffstat (limited to 'gst')
-rw-r--r-- | gst/netsim/gstnetsim.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gst/netsim/gstnetsim.c b/gst/netsim/gstnetsim.c index 66656a774..90178c704 100644 --- a/gst/netsim/gstnetsim.c +++ b/gst/netsim/gstnetsim.c @@ -369,7 +369,7 @@ gst_net_sim_delay_buffer (GstNetSim * netsim, GstBuffer * buf) ready_time = netsim->last_ready_time + 1; netsim->last_ready_time = ready_time; - GST_DEBUG_OBJECT (netsim, "Delaying packet by %ldms", + GST_DEBUG_OBJECT (netsim, "Delaying packet by %" G_GINT64_FORMAT "ms", (ready_time - now_time) / 1000); g_source_set_ready_time (source, ready_time); @@ -446,7 +446,8 @@ gst_net_sim_token_bucket (GstNetSim * netsim, GstBuffer * buf) tokens = gst_net_sim_get_tokens (netsim); netsim->bucket_size = MIN (G_MAXINT, netsim->bucket_size + tokens); - GST_LOG_OBJECT (netsim, "Adding %d tokens to bucket (contains %lu tokens)", + GST_LOG_OBJECT (netsim, + "Adding %d tokens to bucket (contains %" G_GSIZE_FORMAT " tokens)", tokens, netsim->bucket_size); if (netsim->max_bucket_size != -1 && netsim->bucket_size > @@ -454,13 +455,15 @@ gst_net_sim_token_bucket (GstNetSim * netsim, GstBuffer * buf) netsim->bucket_size = netsim->max_bucket_size * 1000; if (buffer_size > netsim->bucket_size) { - GST_DEBUG_OBJECT (netsim, "Buffer size (%lu) exeedes bucket size (%lu)", - buffer_size, netsim->bucket_size); + GST_DEBUG_OBJECT (netsim, + "Buffer size (%" G_GSIZE_FORMAT ") exeedes bucket size (%" + G_GSIZE_FORMAT ")", buffer_size, netsim->bucket_size); return FALSE; } netsim->bucket_size -= buffer_size; - GST_LOG_OBJECT (netsim, "Buffer taking %lu tokens (%lu left)", + GST_LOG_OBJECT (netsim, + "Buffer taking %" G_GSIZE_FORMAT " tokens (%" G_GSIZE_FORMAT " left)", buffer_size, netsim->bucket_size); return TRUE; } |