diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-10 15:18:50 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-10 15:42:15 +0100 |
commit | 453a51d1a1590570ff4cd12c58ca1e396bf04b2e (patch) | |
tree | 1da36038b880636ac86b74a36d2ef1f176d7b96b | |
parent | a54ed46baccbe287589fa1d6bc6a2cf5ae504102 (diff) |
migrate to DLBSSGP as log sub-system for BSSGP
Change-Id: I69ee10b6fad1da2053cf6f3ae99d3ecf62a144ce
Depends: libosmocore.git Change-Id I506190aae9217c0956e4b5764d1a0c0772268e93
-rw-r--r-- | include/osmocom/sgsn/debug.h | 1 | ||||
-rw-r--r-- | src/gbproxy/gb_proxy_main.c | 7 | ||||
-rw-r--r-- | src/sgsn/sgsn_main.c | 7 | ||||
-rw-r--r-- | tests/sgsn/sgsn_test.c | 5 |
4 files changed, 2 insertions, 18 deletions
diff --git a/include/osmocom/sgsn/debug.h b/include/osmocom/sgsn/debug.h index 29d500da7..507b70c11 100644 --- a/include/osmocom/sgsn/debug.h +++ b/include/osmocom/sgsn/debug.h @@ -24,7 +24,6 @@ enum { DREF, DGPRS, DNS, - DBSSGP, DLLC, DSNDCP, DSLHC, diff --git a/src/gbproxy/gb_proxy_main.c b/src/gbproxy/gb_proxy_main.c index c7ff78cf9..a9c132e86 100644 --- a/src/gbproxy/gb_proxy_main.c +++ b/src/gbproxy/gb_proxy_main.c @@ -209,11 +209,6 @@ static struct log_info_cat gprs_categories[] = { .description = "GPRS Network Service (NS)", .enabled = 1, .loglevel = LOGL_INFO, }, - [DBSSGP] = { - .name = "DBSSGP", - .description = "GPRS BSS Gateway Protocol (BSSGP)", - .enabled = 1, .loglevel = LOGL_DEBUG, - }, }; static const struct log_info gprs_log_info = { @@ -288,7 +283,7 @@ int main(int argc, char **argv) } gprs_ns2_vty_init(gbcfg->nsi, NULL); - bssgp_set_log_ss(DBSSGP); + logging_vty_add_deprecated_subsys(tall_sgsn_ctx, "bssgp"); gprs_ns2_dynamic_create_nse(gbcfg->nsi, true); bssgp_set_bssgp_callback(gbprox_bssgp_send_cb, gbcfg); diff --git a/src/sgsn/sgsn_main.c b/src/sgsn/sgsn_main.c index e51336bf0..0277f6f04 100644 --- a/src/sgsn/sgsn_main.c +++ b/src/sgsn/sgsn_main.c @@ -312,11 +312,6 @@ static struct log_info_cat gprs_categories[] = { .description = "GPRS Network Service (NS)", .enabled = 1, .loglevel = LOGL_NOTICE, }, - [DBSSGP] = { - .name = "DBSSGP", - .description = "GPRS BSS Gateway Protocol (BSSGP)", - .enabled = 1, .loglevel = LOGL_NOTICE, - }, [DLLC] = { .name = "DLLC", .description = "GPRS Logical Link Control Protocol (LLC)", @@ -424,7 +419,7 @@ int main(int argc, char **argv) rate_ctr_init(tall_sgsn_ctx); gprs_ns_set_log_ss(DNS); - bssgp_set_log_ss(DBSSGP); + logging_vty_add_deprecated_subsys(tall_sgsn_ctx, "bssgp"); sgsn_nsi = gprs_ns_instantiate(&sgsn_ns_cb, tall_sgsn_ctx); if (!sgsn_nsi) { diff --git a/tests/sgsn/sgsn_test.c b/tests/sgsn/sgsn_test.c index 7399573fc..057462062 100644 --- a/tests/sgsn/sgsn_test.c +++ b/tests/sgsn/sgsn_test.c @@ -1625,11 +1625,6 @@ static struct log_info_cat gprs_categories[] = { .description = "GPRS Network Service (NS)", .enabled = 1, .loglevel = LOGL_INFO, }, - [DBSSGP] = { - .name = "DBSSGP", - .description = "GPRS BSS Gateway Protocol (BSSGP)", - .enabled = 1, .loglevel = LOGL_DEBUG, - }, [DLLC] = { .name = "DLLC", .description = "GPRS Logical Link Control Protocol (LLC)", |