From: Kevin P. Fleming Date: Thu, 10 Jun 2010 12:28:17 +0000 (+0000) Subject: Ensure that 'logger show channels' works properly when wildcards are used in logger... X-Git-Tag: 11.0.0-beta1~2855 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ba94eb0bd2ec292eb83d398bfc40820919f05f;p=thirdparty%2Fasterisk.git Ensure that 'logger show channels' works properly when wildcards are used in logger.conf. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@269707 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/logger.c b/main/logger.c index 53b7bb3dff..cd7d7a3ed4 100644 --- a/main/logger.c +++ b/main/logger.c @@ -730,7 +730,7 @@ static char *handle_logger_show_channels(struct ast_cli_entry *e, int cmd, struc chan->disabled ? "Disabled" : "Enabled"); ast_cli(a->fd, " - "); for (level = 0; level < ARRAY_LEN(levels); level++) { - if (chan->logmask & (1 << level)) { + if ((chan->logmask & (1 << level)) && levels[level]) { ast_cli(a->fd, "%s ", levels[level]); } }