[layer23] Adding "neighbour cell" logging category: DNB
authorAndreas Eversberg <jolly@eversberg.eu>
Sun, 12 Jun 2011 20:39:47 +0000 (22:39 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sun, 17 Jul 2011 08:03:34 +0000 (10:03 +0200)
src/host/layer23/include/osmocom/bb/common/logging.h
src/host/layer23/src/common/logging.c
src/host/layer23/src/mobile/main.c

index 9205fec..554b767 100644 (file)
@@ -9,6 +9,7 @@ enum {
        DRR,
        DPLMN,
        DCS,
+       DNB,
        DMM,
        DCC,
        DSMS,
index 5283935..82ce914 100644 (file)
@@ -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",
index 01c2b2e..e16356f 100644 (file)
@@ -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);