aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-25 02:57:03 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-25 02:57:03 +0100
commitbb7bc1155fbef0be4218f3e95d37734cdc86bc3f (patch)
tree6ea23c70a4729881f3a3ea8b7c45c64cf824777f
parent009ad61dabb3b58ddd6212ecf4cb2b4dedc43404 (diff)
debug: Make the global target loglevel overwrite the category level
Together with the previos -e Number option one can easily turn on debugging without needing to remember the category masks for a quick check on what is going on.
-rw-r--r--openbsc/src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/debug.c b/openbsc/src/debug.c
index 3bb5309a6..8f7a1c303 100644
--- a/openbsc/src/debug.c
+++ b/openbsc/src/debug.c
@@ -242,7 +242,7 @@ static void _debugp(unsigned int subsys, int level, char *file, int line,
continue;
/* Check the category log level */
- if (category->loglevel != 0 && level < category->loglevel)
+ if (tar->loglevel == 0 && category->loglevel != 0 && level < category->loglevel)
continue;
/*