summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Eversberg2011-06-12 22:39:47 +0200
committerAndreas Eversberg2011-07-17 10:03:34 +0200
commitaf06f002191cf988e8a606f9b7d1711b8d56ff8d (patch)
tree5ee2877eb67f47e222201c382b52b06c0879cf7f /src
parent[layer23] Detach SIM, if reading fails (diff)
downloadosmocom-af06f002191cf988e8a606f9b7d1711b8d56ff8d.tar.gz
osmocom-af06f002191cf988e8a606f9b7d1711b8d56ff8d.tar.xz
osmocom-af06f002191cf988e8a606f9b7d1711b8d56ff8d.zip
[layer23] Adding "neighbour cell" logging category: DNB
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/logging.h1
-rw-r--r--src/host/layer23/src/common/logging.c6
-rw-r--r--src/host/layer23/src/mobile/main.c4
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 9205fec..554b767 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 5283935..82ce914 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 01c2b2e..e16356f 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);