GNOME Bugzilla – Bug 711103
gmessages: Add g_info macro for G_LOG_LEVEL_INFO
Last modified: 2013-11-19 22:58:14 UTC
This patch adds a macro for g_info(), alongside g_message(), g_debug() and friends. Other projects want to use this log level (especially when log levels errors to syslog priorities), and end up having to define this awkwardly.
Created attachment 258484 [details] [review] gmessages: Add g_info macro for G_LOG_LEVEL_INFO For completeness. Although less used than others, projects want to use this, and end up having to define it awkwardly themselves.
dup of 526804 ?
(In reply to comment #2) > dup of 526804 ? Indeed, I should have checked for dups. Although the attached patch is rebased for modern glib, and has a bit more in it. I hope it's okay if I mark that one a duplicate of this one.
*** Bug 526804 has been marked as a duplicate of this bug. ***
Review of attachment 258484 [details] [review]: Looks good to me. ::: glib/tests/protocol.c @@ -45,3 @@ -#ifdef g_info -#error "rewrite this to use g_info()" -#endif Hah, funny.
(In reply to comment #3) > (In reply to comment #2) > > dup of 526804 ? > > Indeed, I should have checked for dups. Although the attached patch is rebased > for modern glib, and has a bit more in it. > > I hope it's okay if I mark that one a duplicate of this one. ohh no, you destroyed my first attempt to contribute to glib! haha
(In reply to comment #6) > > ohh no, you destroyed my first attempt to contribute to glib! Sorry about that =( In the last few years GLib (and more of GNOME) has gotten better about patch review, so I hope you'll have better luck with future patches!
Attachment 258484 [details] pushed as 36f1a4c - gmessages: Add g_info macro for G_LOG_LEVEL_INFO
(In reply to comment #7) > (In reply to comment #6) > > > > ohh no, you destroyed my first attempt to contribute to glib! > > Sorry about that =( In the last few years GLib (and more of GNOME) has gotten > better about patch review, so I hope you'll have better luck with future > patches! Please do not be!, I was kidding