aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2010-01-08 09:09:33 +0100
committerHarald Welte <laforge@netfilter.org>2010-01-08 09:09:33 +0100
commitdd43f0abd70e88a598539c1143ed9277989bdfdb (patch)
treee8380862c8e2b53818ebc1563287ce1218179ca2
parent7ea3caeb81b9db57b5e56ad714a4a704d242bb1b (diff)
GPRS: use the new logging architecture
-rw-r--r--openbsc/src/debug.c2
-rw-r--r--openbsc/src/vty_interface.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/debug.c b/openbsc/src/debug.c
index bd06daec7..f83b48e69 100644
--- a/openbsc/src/debug.c
+++ b/openbsc/src/debug.c
@@ -54,6 +54,7 @@ static struct debug_category default_categories[Debug_LastEntry] = {
[DHO] = { .enabled = 1, .loglevel = LOGL_NOTICE },
[DDB] = { .enabled = 1, .loglevel = LOGL_NOTICE },
[DREF] = { .enabled = 0, .loglevel = LOGL_NOTICE },
+ [DGPRS] = { .enabled = 1, .loglevel = LOGL_NOTICE },
};
const char *get_value_string(const struct value_string *vs, u_int32_t val)
@@ -125,6 +126,7 @@ static const struct debug_info debug_info[] = {
DEBUG_CATEGORY(DHO, "DHO", "", "")
DEBUG_CATEGORY(DDB, "DDB", "", "")
DEBUG_CATEGORY(DDB, "DREF", "", "")
+ DEBUG_CATEGORY(DDB, "DGPRS", "", "")
};
static const struct value_string loglevel_strs[] = {
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 6ff586191..7adfd1d5f 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -972,7 +972,7 @@ DEFUN(logging_prnt_timestamp,
}
/* FIXME: those have to be kept in sync with the log levels and categories */
-#define VTY_DEBUG_CATEGORIES "(rll|cc|mm|rr|rsl|nm|sms|pag|mncc|inp|mi|mib|mux|meas|sccp|msc|mgcp|ho|db|ref)"
+#define VTY_DEBUG_CATEGORIES "(rll|cc|mm|rr|rsl|nm|sms|pag|mncc|inp|mi|mib|mux|meas|sccp|msc|mgcp|ho|db|ref|gprs)"
#define VTY_DEBUG_LEVELS "(everything|debug|info|notice|error|fatal)"
DEFUN(logging_level,
logging_level_cmd,