diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-05-23 06:42:38 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-05-23 06:42:38 +0000 |
commit | c125a680efcc2de2958e0c36e3b6aac1b61ed909 (patch) | |
tree | 34c4d504cbae8535b5e017398e5e95045cbba3cc /src | |
parent | a4d49e96ab45b12fe581d6ab3cecd0727bccb317 (diff) |
A new debug flag is introduced: "DMNCC". MNCC is the Mobile Network Call
Control. This is required for later patches, that extract the call
control from gsm_04_08.c. (Andreas Eversberg)
Diffstat (limited to 'src')
-rw-r--r-- | src/bs11_config.c | 4 | ||||
-rw-r--r-- | src/debug.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/bs11_config.c b/src/bs11_config.c index 57ed9023e..ceb23a8e2 100644 --- a/src/bs11_config.c +++ b/src/bs11_config.c @@ -701,6 +701,7 @@ static void handle_options(int argc, char **argv) { "win-size", 1, 0, 'w' }, { "forced", 0, 0, 'f' }, { "restart", 0, 0, 'r' }, + { "debug", 1, 0, 'b'}, }; c = getopt_long(argc, argv, "hp:s:S:td:Dw:fra:", @@ -716,6 +717,9 @@ static void handle_options(int argc, char **argv) case 'p': serial_port = optarg; break; + case 'b': + debug_parse_category_mask(optarg); + break; case 's': fname_software = optarg; break; diff --git a/src/debug.c b/src/debug.c index cdf3d0f2c..10c4bb10d 100644 --- a/src/debug.c +++ b/src/debug.c @@ -51,6 +51,7 @@ static const struct debug_info debug_info[] = { DEBUG_CATEGORY(DNM, "DNM", "\033[1;36m", "") DEBUG_CATEGORY(DSMS, "DSMS", "\033[1;37m", "") DEBUG_CATEGORY(DPAG, "DPAG", "\033[1;38m", "") + DEBUG_CATEGORY(DMNCC, "DMNCC","\033[1;39m", "") DEBUG_CATEGORY(DINP, "DINP", "", "") DEBUG_CATEGORY(DMI, "DMI", "", "") DEBUG_CATEGORY(DMIB, "DMIB", "", "") |