diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-25 02:57:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-25 02:57:03 +0100 |
commit | bb7bc1155fbef0be4218f3e95d37734cdc86bc3f (patch) | |
tree | 6ea23c70a4729881f3a3ea8b7c45c64cf824777f /openbsc/src | |
parent | 009ad61dabb3b58ddd6212ecf4cb2b4dedc43404 (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.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/debug.c | 2 |
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; /* |