[Telepathy-commits] [telepathy-salut/master] salut_ft_manager_new_channel: improve debug msg

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Dec 1 03:12:44 PST 2008


---
 src/salut-ft-manager.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/salut-ft-manager.c b/src/salut-ft-manager.c
index 65ce255..e09ef21 100644
--- a/src/salut-ft-manager.c
+++ b/src/salut-ft-manager.c
@@ -256,7 +256,10 @@ salut_ft_manager_new_channel (SalutFtManager *mgr,
   /* Increasing guint to make sure object paths are random */
   static guint id = 0;
 
-  DEBUG ("Requested channel for handle: %d", handle);
+  if (requested)
+    DEBUG ("Outgoing channel requested for handle %d", handle);
+  else
+    DEBUG ("Incoming channel received from handle %d", handle);
 
   contact = salut_contact_manager_get_contact (priv->contact_manager, handle);
   if (contact == NULL)
@@ -269,8 +272,6 @@ salut_ft_manager_new_channel (SalutFtManager *mgr,
       return NULL;
     }
 
-  DEBUG ("%s channel requested", requested ? "Outgoing" : "Incoming");
-
   state = SALUT_FILE_TRANSFER_STATE_PENDING;
   if (!requested)
     {
-- 
1.5.6.5




More information about the Telepathy-commits mailing list