From 2e628be2c2d4461c891abcd9be90f8cbdc752bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 5 Jan 2008 13:45:22 +0000 Subject: [PATCH] gst/gstdebugutils.c: Log the reason why fopen fails in addition to the fact that it failed. Original commit message from CVS: * gst/gstdebugutils.c: (_gst_debug_bin_to_dot_file): Log the reason why fopen fails in addition to the fact that it failed. --- ChangeLog | 5 +++++ gst/gstdebugutils.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4da7ea2a61..49dee73be3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-05 Tim-Philipp Müller + + * gst/gstdebugutils.c: (_gst_debug_bin_to_dot_file): + Log the reason why fopen fails in addition to the fact that it failed. + 2008-01-04 Sebastian Dröge * gst/parse/parse.l: diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 4e490e9b8a..9cdf0ff9c6 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "gstinfo.h" #include "gstbin.h" @@ -480,7 +481,8 @@ _gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details, fclose (out); GST_INFO ("wrote bin graph to : '%s'", full_file_name); } else { - GST_WARNING ("Failed to open file '%s' for writing", full_file_name); + GST_WARNING ("Failed to open file '%s' for writing: %s", full_file_name, + g_strerror (errno)); } g_free (full_file_name); }