logging/vty: use LOG_LEVEL_ARGS in logging_vty_add_deprecated_subsys()

Change-Id: I862c3cce0147ee8cf4013501132584ea09c58b53
This commit is contained in:
Vadim Yanitskiy 2019-11-21 00:06:53 +07:00
parent 1581c49bdd
commit 75c242e6a2
1 changed files with 1 additions and 2 deletions

View File

@ -1005,8 +1005,7 @@ void logging_vty_add_deprecated_subsys(void *ctx, const char *name)
{
struct cmd_element *cmd = talloc_zero(ctx, struct cmd_element);
OSMO_ASSERT(cmd);
cmd->string = talloc_asprintf(cmd, "logging level %s (debug|info|notice|error|fatal)",
name);
cmd->string = talloc_asprintf(cmd, "logging level %s " LOG_LEVEL_ARGS, name);
cmd->func = log_deprecated_func;
cmd->doc = LEVEL_STR
"Deprecated Category\n";