[Bug 37803] Debug output should include user-readable enum names

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 25 19:27:54 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=37803

--- Comment #6 from Will Thompson <will.thompson at collabora.co.uk> 2011-07-25 10:27:53 PDT ---
   if (handle_repo == NULL)
     {
-      DEBUG ("unimplemented handle type %u", handle_type);
+      DEBUG ("unimplemented handle type %s (%d)",
+          _tp_enum_to_nick (TP_TYPE_HANDLE_TYPE, handle_type), handle_type);

       error = g_error_new (TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
-                          "unimplemented handle type %u", handle_type);
+          "unimplemented handle type: %s (%d)",
+          _tp_enum_to_nick (TP_TYPE_HANDLE_TYPE, handle_type), handle_type);
       goto out;
     }

This could DEBUG the message from the GError rather than building it twice?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list