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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 1 18:37:00 CEST 2011


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

David Laban <david.laban at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.laban at collabora.co.uk

--- Comment #2 from David Laban <david.laban at collabora.co.uk> 2011-06-01 09:37:00 PDT ---
> Generating "stringify" functions (tp_foo_to_string()?) would be fine, though.

Okay... How should I deal with out of range values? Keep a cache of the form
{53: "Unknown Value: 53"} or just blindly return "Unknown Value" for everything
and make the person doing the debugging always include both the number and the
string in their printf formats?

It would be quite important to return a const gchar * unless you know of a
printf function that can be told to free strings that it's passed with capital
%S or something (That would be quite awesome actually. Maybe I should write it)

-- 
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