[farsight2/master] Replace perror() calls with GST_ERROR

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:50:39 PDT 2009


---
 gst/fsmsnconference/fs-msn-connection.c |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/gst/fsmsnconference/fs-msn-connection.c b/gst/fsmsnconference/fs-msn-connection.c
index 0a09a5e..0ae5709 100644
--- a/gst/fsmsnconference/fs-msn-connection.c
+++ b/gst/fsmsnconference/fs-msn-connection.c
@@ -657,7 +657,9 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
-            perror ("auth");
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("auth: %s", error_str);
             goto error;
           }
 
@@ -689,7 +691,9 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
-            perror ("connected");
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("connected: %s", error_str);
             goto error;
           }
         } else {
@@ -719,7 +723,9 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
-            perror ("connected");
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("connected: %s", error_str);
             goto error;
           }
 
@@ -753,8 +759,10 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("auth: %s", error_str);
             g_free (str);
-            perror ("auth");
             goto error;
           }
 
@@ -771,7 +779,9 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
-            perror ("sending connected");
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("sending connected: %s", error_str);
             goto error;
           }
         } else {
@@ -791,7 +801,9 @@ connection_cb (FsMsnConnection *self, FsMsnPollFD *pollfd)
           }
           else
           {
-            perror ("sending connected");
+            gchar error_str[256];
+            strerror_r (errno, error_str, 256);
+            GST_ERROR ("sending connected: %s", error_str);
             goto error;
           }
         } else {
-- 
1.5.6.5




More information about the farsight-commits mailing list