From 615c6b6800cff30826550e8b96d4862ccc01e3c3 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 20 Oct 2010 12:22:54 +0000 Subject: [PATCH] wctc4xxp: Cannot print the encoder/decoder channels before we know them. Signed-off-by: Shaun Ruffell Acked-by: Kinsey Moore Acked-by: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9438 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctc4xxp/base.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 8e35a36..575f45a 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -3018,10 +3018,6 @@ wctc4xxp_create_channel_pair(struct wcdte *wc, struct channel_pvt *cpvt, complicated = temp; } - DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, - "DTE is using the following channels encoder_channel: " \ - "%d decoder_channel: %d\n", encoder_channel, decoder_channel); - BUG_ON(encoder_timeslot/2 >= wc->numchannels); BUG_ON(decoder_timeslot/2 >= wc->numchannels); encoder_pvt = wc->uencode->channels[encoder_timeslot/2].pvt; @@ -3040,6 +3036,10 @@ wctc4xxp_create_channel_pair(struct wcdte *wc, struct channel_pvt *cpvt, &decoder_channel)) goto error_exit; + DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, + "DTE is using the following channels encoder_channel: " \ + "%d decoder_channel: %d\n", encoder_channel, decoder_channel); + length = (DTE_FORMAT_G729A == complicated) ? G729_LENGTH : (DTE_FORMAT_G723_1 == complicated) ? G723_LENGTH : 0;