[Spice-devel] [PATCH spice-gtk] display-gst: fix format error
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Jul 13 10:05:40 UTC 2017
From: Marc-André Lureau <marcandre.lureau at redhat.com>
../../src/channel-display-gst.c: In function 'handle_pipeline_message':
../../src/channel-display-gst.c:289:75: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'gint64 {aka long long int}' [-Werror=format=]
gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%ld-%s",
~~^
%I64d
get_stream_id_by_stream(decoder->base.stream->channel,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
decoder->base.stream),
~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
src/channel-display-gst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 3cf451b..20d236a 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -286,7 +286,7 @@ static gboolean handle_pipeline_message(GstBus *bus, GstMessage *msg, gpointer v
break;
}
case GST_MESSAGE_STREAM_START: {
- gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%ld-%s",
+ gchar *filename = g_strdup_printf("spice-gtk-gst-pipeline-debug-%" G_GINT64_FORMAT "-%s",
get_stream_id_by_stream(decoder->base.stream->channel,
decoder->base.stream),
gst_opts[decoder->base.codec_type].name);
--
2.13.1.395.gf7b71de06
More information about the Spice-devel
mailing list