summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/vpmadt032.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@digium.com>2008-08-03 16:47:46 +0000
committerRussell Bryant <russell@digium.com>2008-08-03 16:47:46 +0000
commitad59317fbfddd1d6624e8128f556d85e7e17d935 (patch)
treed76f5176789981ba3f8ee905a4ba8ae926ff6b95 /drivers/dahdi/wcte12xp/vpmadt032.c
parent53bb164eda38b8591a88146fbf81652041eeb9b1 (diff)
Change all instances of printk in DAHDI to include a priority
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/vpmadt032.c')
-rw-r--r--drivers/dahdi/wcte12xp/vpmadt032.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/dahdi/wcte12xp/vpmadt032.c b/drivers/dahdi/wcte12xp/vpmadt032.c
index 9e63923..1abba90 100644
--- a/drivers/dahdi/wcte12xp/vpmadt032.c
+++ b/drivers/dahdi/wcte12xp/vpmadt032.c
@@ -88,7 +88,7 @@ inline void vpm150m_cmd_dequeue(struct t1 *wc, volatile unsigned char *writechun
}
if (curcmd) {
#if 0
- printk("Found command txident = %d, desc = 0x%x, addr = 0x%x, data = 0x%x\n", curcmd->txident, curcmd->desc, curcmd->addr, curcmd->data);
+ printk(KERN_DEBUG "Found command txident = %d, desc = 0x%x, addr = 0x%x, data = 0x%x\n", curcmd->txident, curcmd->desc, curcmd->addr, curcmd->data);
#endif
if (curcmd->flags & __VPM150M_RWPAGE) {
/* Set CTRL access to page*/
@@ -782,6 +782,7 @@ void t1_vpm150m_init(struct t1 *wc) {
set_bit(VPM150M_HPIRESET, &vpm150m->control);
msleep(2000);
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
@@ -790,10 +791,12 @@ void t1_vpm150m_init(struct t1 *wc) {
gpakWriteDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
gpakWriteDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
@@ -801,10 +804,12 @@ void t1_vpm150m_init(struct t1 *wc) {
msg[i] = 0xbeef;
gpakWriteDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
@@ -812,10 +817,12 @@ void t1_vpm150m_init(struct t1 *wc) {
msg[i] = 0x1111;
gpakWriteDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
@@ -823,10 +830,12 @@ void t1_vpm150m_init(struct t1 *wc) {
msg[i] = 0x2222;
gpakWriteDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
gpakReadDspMemory(vpm150m->dspid, 0x1000, TEST_SIZE, msg);
+ debug_printk(1, "");
for (i = 0; i< TEST_SIZE; i++)
printk("%x ", msg[i]);
printk("\n");
@@ -835,7 +844,7 @@ void t1_vpm150m_init(struct t1 *wc) {
#if defined(HOTPLUG_FIRMWARE)
if ((request_firmware(&firmware, vpmadt032_firmware, &pdev->dev) != 0) ||
!firmware) {
- printk("VPMADT032: firmware %s not available from userspace\n", vpmadt032_firmware);
+ printk(KERN_NOTICE "VPMADT032: firmware %s not available from userspace\n", vpmadt032_firmware);
goto failed_exit;
}
#else