From: Nirbheek Chauhan Date: Sun, 25 Mar 2018 12:38:58 +0000 (+0530) Subject: wasapi: Print the hresult hex value on error X-Git-Tag: 1.19.3~507^2~4313 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a08d333e56424d2135fee4b22d06097235f05117;p=platform%2Fupstream%2Fgstreamer.git wasapi: Print the hresult hex value on error This helps figure out precisely what error enum value was returned, which can be necessary when the description is too generic --- diff --git a/sys/wasapi/gstwasapiutil.h b/sys/wasapi/gstwasapiutil.h index 235db0a..784ef58 100644 --- a/sys/wasapi/gstwasapiutil.h +++ b/sys/wasapi/gstwasapiutil.h @@ -45,7 +45,7 @@ do { \ if (hr != S_OK) { \ gchar *msg = gst_wasapi_util_hresult_to_string (hr); \ - GST_ERROR_OBJECT (self, #func " failed: %s", msg); \ + GST_ERROR_OBJECT (self, #func " failed (%x): %s", hr, msg); \ g_free (msg); \ and; \ } \