summaryrefslogtreecommitdiff
path: root/wcte12xp
diff options
context:
space:
mode:
authormspiceland <mspiceland@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-10 23:01:23 +0000
committermspiceland <mspiceland@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-10 23:01:23 +0000
commit8d7bc1c2959659c6649ca6ade2467f0ee88b7864 (patch)
tree0efd4dafad23e7de1eca15af3d3f9d1314fa7499 /wcte12xp
parentdac6b66e1d7de73a935cbf72cc6587eb60decabd (diff)
Small change to prevent scary messages (one's with "Failed" in them) to users
without hardware echo cancellation modules installed. In case they actually have one instead, we still report some info in debug mode to help find where in the init the module failed for troubleshooting. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3400 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcte12xp')
-rw-r--r--wcte12xp/vpmadt032.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wcte12xp/vpmadt032.c b/wcte12xp/vpmadt032.c
index 964d0ea..ca15e7c 100644
--- a/wcte12xp/vpmadt032.c
+++ b/wcte12xp/vpmadt032.c
@@ -694,14 +694,18 @@ void t1_vpm150m_init(struct t1 *wc) {
for (i = 0; i < 10; i++)
schluffen(&wc->regq);
- debug_printk(1, "VPMADT032 Testing page access: ");
+ debug_printk(1, "Looking for VPMADT032 by testing page access: ");
for (i = 0; i < 0xf; i++) {
int x;
for (x = 0; x < 3; x++) {
t1_vpm150m_setpage(wc, i);
reg = t1_vpm150m_getpage(wc);
if (reg != i) {
- module_printk("Failed VPM page access test: Sent %x != %x VPMADT032 Failed HI page test\n", i, reg);
+ /* If they have debug turned on we want them to be able to
+ * report where in the code the module failed to come up. */
+ debug_printk(1, "Either no VPMADT032 module present or the module failed VPM page access test (%x != %x)\n", i, reg);
+ /* we need a message in case they don't have debug turned on*/
+ module_printk("No working VPMADT032 hardware echo cancellation module found.\n");
goto failed_exit;
}
}