From 1a2b459100f1c358d5ecb7d1c6324424f18431ee Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 30 Jan 2011 18:32:16 +0000 Subject: xpd_pri: reorder debug messages Move priv->layer1_up debug message after priv->is_cas debug message. Otherwise, we get extra meaningless debug message. Signed-off-by: Oron Peled Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9716 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/card_pri.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers') diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c index 9950c64..e2833f7 100644 --- a/drivers/dahdi/xpp/card_pri.c +++ b/drivers/dahdi/xpp/card_pri.c @@ -1690,9 +1690,6 @@ static int pri_rbsbits(struct dahdi_chan *chan, int bits) pos = chan->chanpos - 1; priv = xpd->priv; BUG_ON(!priv); - if(!priv->layer1_up) { - XPD_DBG(SIGNAL, xpd, "RBS: TX: No layer1 yet. Keep going.\n"); - } if(!priv->is_cas) { XPD_DBG(SIGNAL, xpd, "RBS: TX: not in CAS mode. Ignore.\n"); return 0; @@ -1703,6 +1700,9 @@ static int pri_rbsbits(struct dahdi_chan *chan, int bits) sig2str(chan->sig), bits); return 0; } + if(!priv->layer1_up) { + XPD_DBG(SIGNAL, xpd, "RBS: TX: No layer1 yet. Keep going.\n"); + } if(priv->pri_protocol == PRI_PROTO_E1) { if(encode_rbsbits_e1(xpd, pos, bits) < 0) return -EINVAL; -- cgit v1.2.3