From d6b5195be2676d33226efe53dad62723c3fb0655 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 3 May 2011 22:32:32 +0200 Subject: 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 --- src/logging.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3