tests: curlhttpsrc: fix compiler warning on raspbian
authorTim-Philipp Müller <tim@centricular.com>
Sun, 3 May 2020 10:05:32 +0000 (10:05 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 3 May 2020 11:21:09 +0000 (12:21 +0100)
tests/check/elements/curlhttpsrc.c:142:14: warning: format ‘%lu’
expects argument of type ‘long unsigned int’, but argument 8 has
type ‘gsize’ {aka ‘unsigned int’}

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1239>

tests/check/elements/curlhttpsrc.c

index 9c26cf2..d0901d5 100644 (file)
@@ -139,7 +139,7 @@ do_get (GioHttpServer * server, const HttpRequest * req, GOutputStream * out)
   }
 
   g_string_append (s, "\r\n");
-  GST_DEBUG ("Response headers: %lu\n%s\n********", s->len, s->str);
+  GST_DEBUG ("Response headers: %u\n%s\n********", (guint) s->len, s->str);
   g_output_stream_write_all (out, s->str, s->len, &written, NULL, NULL);
   fail_if (written != s->len);
   g_string_free (s, TRUE);