From 57549330454fb44af4b4a16e1e3e9b5fbdf61b0d Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Tue, 6 Jul 2010 22:09:23 +0000
Subject: [PATCH] Status shows all non-CRC4 lines as "yellow", even if "yellow"
 was not in the bitfield.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@274281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_dahdi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 534d9a82ab..e2cad3fef9 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -14769,7 +14769,8 @@ static char *dahdi_show_status(struct ast_cli_entry *e, int cmd, struct ast_cli_
 			s.lineconfig & DAHDI_CONFIG_AMI ? "AMI" :
 			"Unk",
 			s.lineconfig & DAHDI_CONFIG_CRC4 ?
-			s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "CRC4/YEL" : "CRC4" : "YEL",
+				s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "CRC4/YEL" : "CRC4" :
+				s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "YEL" : "",
 			lbostr[s.lbo]
 			);
 	}
-- 
GitLab