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)
This commit is contained in:
parent
a4d49e96ab
commit
c125a680ef
|
@ -10,6 +10,7 @@
|
||||||
#define DRSL 0x0010
|
#define DRSL 0x0010
|
||||||
#define DNM 0x0020
|
#define DNM 0x0020
|
||||||
|
|
||||||
|
#define DMNCC 0x0080
|
||||||
#define DSMS 0x0100
|
#define DSMS 0x0100
|
||||||
#define DPAG 0x0200
|
#define DPAG 0x0200
|
||||||
|
|
||||||
|
@ -32,6 +33,6 @@ char *hexdump(unsigned char *buf, int len);
|
||||||
void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...);
|
void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...);
|
||||||
void debug_parse_category_mask(const char* mask);
|
void debug_parse_category_mask(const char* mask);
|
||||||
void debug_use_color(int use_color);
|
void debug_use_color(int use_color);
|
||||||
unsigned int debug_mask;
|
extern unsigned int debug_mask;
|
||||||
|
|
||||||
#endif /* _DEBUG_H */
|
#endif /* _DEBUG_H */
|
||||||
|
|
|
@ -701,6 +701,7 @@ static void handle_options(int argc, char **argv)
|
||||||
{ "win-size", 1, 0, 'w' },
|
{ "win-size", 1, 0, 'w' },
|
||||||
{ "forced", 0, 0, 'f' },
|
{ "forced", 0, 0, 'f' },
|
||||||
{ "restart", 0, 0, 'r' },
|
{ "restart", 0, 0, 'r' },
|
||||||
|
{ "debug", 1, 0, 'b'},
|
||||||
};
|
};
|
||||||
|
|
||||||
c = getopt_long(argc, argv, "hp:s:S:td:Dw:fra:",
|
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':
|
case 'p':
|
||||||
serial_port = optarg;
|
serial_port = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 'b':
|
||||||
|
debug_parse_category_mask(optarg);
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
fname_software = optarg;
|
fname_software = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -51,6 +51,7 @@ static const struct debug_info debug_info[] = {
|
||||||
DEBUG_CATEGORY(DNM, "DNM", "\033[1;36m", "")
|
DEBUG_CATEGORY(DNM, "DNM", "\033[1;36m", "")
|
||||||
DEBUG_CATEGORY(DSMS, "DSMS", "\033[1;37m", "")
|
DEBUG_CATEGORY(DSMS, "DSMS", "\033[1;37m", "")
|
||||||
DEBUG_CATEGORY(DPAG, "DPAG", "\033[1;38m", "")
|
DEBUG_CATEGORY(DPAG, "DPAG", "\033[1;38m", "")
|
||||||
|
DEBUG_CATEGORY(DMNCC, "DMNCC","\033[1;39m", "")
|
||||||
DEBUG_CATEGORY(DINP, "DINP", "", "")
|
DEBUG_CATEGORY(DINP, "DINP", "", "")
|
||||||
DEBUG_CATEGORY(DMI, "DMI", "", "")
|
DEBUG_CATEGORY(DMI, "DMI", "", "")
|
||||||
DEBUG_CATEGORY(DMIB, "DMIB", "", "")
|
DEBUG_CATEGORY(DMIB, "DMIB", "", "")
|
||||||
|
|
Loading…
Reference in New Issue