From bb7bc1155fbef0be4218f3e95d37734cdc86bc3f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 25 Mar 2010 02:57:03 +0100 Subject: [PATCH] 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. --- openbsc/src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /*