aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-05-03 22:32:32 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-04 11:07:13 +0200
commitd6b5195be2676d33226efe53dad62723c3fb0655 (patch)
tree52f8c90cb871e6249f22accecc4f944df688b15f
parent1dd7c84733b20ba776510369e9daba1a822c5b44 (diff)
logging: fix missing description of global loglevel
OpenBSC> logging level all Global setting for all subsystems <----- this description was missing rll A-bis Radio Link Layer (RLL) [...] This problem was introduced by myself in: "vty: integration with logging framework" 04139f14b6197e3ec996133a945af3fa8a68fb7a
-rw-r--r--src/logging.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index 77c8a50d..7b1ab138 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -517,6 +517,7 @@ const char *log_vty_command_description(const struct log_info *info)
for (i = 0; i < LOGLEVEL_DEFS; i++)
size += strlen(loglevel_descriptions[i]) + 1;
+ size += strlen("Global setting for all subsystems") + 1;
rem = size;
str = talloc_zero_size(NULL, size);
if (!str)
@@ -528,6 +529,12 @@ const char *log_vty_command_description(const struct log_info *info)
goto err;
OSMO_SNPRINTF_RET(ret, rem, offset, len);
+ ret = snprintf(str + offset, rem,
+ "Global setting for all subsystems\n");
+ if (ret < 0)
+ goto err;
+ OSMO_SNPRINTF_RET(ret, rem, offset, len);
+
for (i = 0; i < info->num_cat; i++) {
ret = snprintf(str + offset, rem, "%s\n",
info->cat[i].description);