diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-06-12 22:39:47 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2011-07-17 10:03:34 +0200 |
commit | af06f002191cf988e8a606f9b7d1711b8d56ff8d (patch) | |
tree | 5ee2877eb67f47e222201c382b52b06c0879cf7f | |
parent | 599d922134fd48a2a576ad7640759d8f6c1fcd9b (diff) |
[layer23] Adding "neighbour cell" logging category: DNB
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/logging.h | 1 | ||||
-rw-r--r-- | src/host/layer23/src/common/logging.c | 6 | ||||
-rw-r--r-- | src/host/layer23/src/mobile/main.c | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h index 9205fec4..554b7670 100644 --- a/src/host/layer23/include/osmocom/bb/common/logging.h +++ b/src/host/layer23/include/osmocom/bb/common/logging.h @@ -9,6 +9,7 @@ enum { DRR, DPLMN, DCS, + DNB, DMM, DCC, DSMS, diff --git a/src/host/layer23/src/common/logging.c b/src/host/layer23/src/common/logging.c index 5283935b..82ce914f 100644 --- a/src/host/layer23/src/common/logging.c +++ b/src/host/layer23/src/common/logging.c @@ -38,6 +38,12 @@ static const struct log_info_cat default_categories[] = { .color = "\033[34m", .enabled = 1, .loglevel = LOGL_DEBUG, }, + [DNB] = { + .name = "DNB", + .description = "Neighbour cell measurement", + .color = "\033[0;31m", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, [DPLMN] = { .name = "DPLMN", .description = "PLMN selection", diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c index 01c2b2e9..e16356f0 100644 --- a/src/host/layer23/src/mobile/main.c +++ b/src/host/layer23/src/mobile/main.c @@ -164,8 +164,8 @@ int main(int argc, char **argv) handle_options(argc, argv); if (!debug_set) - log_parse_category_mask(stderr_target, "DCS:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DPAG:DSUM"); - log_set_log_level(stderr_target, LOGL_INFO); + log_parse_category_mask(stderr_target, "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DPAG:DSUM"); + log_set_log_level(stderr_target, LOGL_DEBUG); if (gsmtap_ip) { gsmtap_inst = gsmtap_source_init(gsmtap_ip, GSMTAP_UDP_PORT, 1); |