From c814b79abedadfbbc851082113657eb9f1c0f84d Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Sun, 30 Jan 2011 18:32:16 +0000 Subject: [PATCH] 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(-) 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;