From: Tim-Philipp Müller Date: Mon, 24 Nov 2014 13:25:55 +0000 (+0000) Subject: winks: fix debug message format issues X-Git-Tag: 1.19.3~507^2~9904 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99a17503a4f225070fe4e0b736c1aeefd005a5e0;p=platform%2Fupstream%2Fgstreamer.git winks: fix debug message format issues And print last bits of GUID properly instead of printing nonsense. https://bugzilla.gnome.org/show_bug.cgi?id=733055 --- diff --git a/sys/winks/gstksvideodevice.c b/sys/winks/gstksvideodevice.c index 994f2f4..75940cb 100644 --- a/sys/winks/gstksvideodevice.c +++ b/sys/winks/gstksvideodevice.c @@ -627,8 +627,7 @@ gst_ks_video_device_create_pin (GstKsVideoDevice * self, if (ks_object_get_property (pin_handle, KSPROPSETID_Stream, KSPROPERTY_STREAM_MASTERCLOCK, (gpointer *) & cur_clock_handle, &cur_clock_handle_size, NULL)) { - GST_DEBUG ("current master clock handle: 0x%08x", - (guint) * cur_clock_handle); + GST_DEBUG ("current master clock handle: %p", *cur_clock_handle); CloseHandle (*cur_clock_handle); g_free (cur_clock_handle); } else { diff --git a/sys/winks/ksvideohelpers.c b/sys/winks/ksvideohelpers.c index afa5e41..c4f9620 100644 --- a/sys/winks/ksvideohelpers.c +++ b/sys/winks/ksvideohelpers.c @@ -180,11 +180,12 @@ ks_video_format_to_structure (GUID subtype_guid, GUID format_guid) } if (!structure) { - GST_DEBUG ("Unknown DirectShow Video GUID %08x-%04x-%04x-%04x-%08x%04x", - (guint) subtype_guid.Data1, (guint) subtype_guid.Data2, - (guint) subtype_guid.Data3, - (guint) subtype_guid.Data4, (guint) & subtype_guid.Data4[2], - (guint) & subtype_guid.Data4[6]); + GST_DEBUG ("Unknown DirectShow Video GUID " + "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", + subtype_guid.Data1, subtype_guid.Data2, subtype_guid.Data3, + subtype_guid.Data4[0], subtype_guid.Data4[1], subtype_guid.Data4[2], + subtype_guid.Data4[3], subtype_guid.Data4[4], subtype_guid.Data4[5], + subtype_guid.Data4[6], subtype_guid.Data4[7]); } return structure;