[glib] trivial: add some helpful comments
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] trivial: add some helpful comments
- Date: Tue, 6 Feb 2018 16:06:27 +0000 (UTC)
commit a4fc4c1e6eb57b10e2b60f522d11fd2c256dee31
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 22 21:27:35 2018 +0100
trivial: add some helpful comments
Not everybody knows console color codes by heart.
glib/gmessages.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 8833ff1..cbaed5d 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -1476,17 +1476,17 @@ log_level_to_color (GLogLevelFlags log_level,
return "";
if (log_level & G_LOG_LEVEL_ERROR)
- return "\033[1;31m";
+ return "\033[1;31m"; /* red */
else if (log_level & G_LOG_LEVEL_CRITICAL)
- return "\033[1;35m";
+ return "\033[1;35m"; /* magenta */
else if (log_level & G_LOG_LEVEL_WARNING)
- return "\033[1;33m";
+ return "\033[1;33m"; /* yellow */
else if (log_level & G_LOG_LEVEL_MESSAGE)
- return "\033[1;32m";
+ return "\033[1;32m"; /* green */
else if (log_level & G_LOG_LEVEL_INFO)
- return "\033[1;32m";
+ return "\033[1;32m"; /* green */
else if (log_level & G_LOG_LEVEL_DEBUG)
- return "\033[1;32m";
+ return "\033[1;32m"; /* green */
/* No color for custom log levels. */
return "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]