[gnome-builder] log: filter out fatal bits



commit f7db984be59ee8441caed36caf399dc88f578e1f
Author: Christian Hergert <christian hergert me>
Date:   Sun Oct 12 19:59:36 2014 -0400

    log: filter out fatal bits

 src/log/gb-log.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/log/gb-log.c b/src/log/gb-log.c
index 20f321d..0936dc5 100644
--- a/src/log/gb-log.c
+++ b/src/log/gb-log.c
@@ -65,7 +65,7 @@ static inline const gchar *
 gb_log_level_str (GLogLevelFlags log_level)
 {
 #define CASE_LEVEL_STR(_l) case G_LOG_LEVEL_ ## _l: return #_l
-  switch ((long) log_level)
+  switch (((gulong)log_level & G_LOG_LEVEL_MASK))
     {
     CASE_LEVEL_STR (ERROR);
     CASE_LEVEL_STR (CRITICAL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]