Commit 4847fb27 authored by Alan Cox's avatar Alan Cox Committed by Dave Jones

[PATCH] printk levels for wd7000

parent a7bf8426
...@@ -1240,7 +1240,7 @@ static int wd7000_adapter_reset(Adapter * host) ...@@ -1240,7 +1240,7 @@ static int wd7000_adapter_reset(Adapter * host)
host->control = 0; /* this must always shadow ASC_CONTROL */ host->control = 0; /* this must always shadow ASC_CONTROL */
if (WAIT(host->iobase + ASC_STAT, ASC_STATMASK, CMD_RDY, 0)) { if (WAIT(host->iobase + ASC_STAT, ASC_STATMASK, CMD_RDY, 0)) {
printk("wd7000_init: WAIT timed out.\n"); printk(KERN_ERR "wd7000_init: WAIT timed out.\n");
return -1; /* -1 = not ok */ return -1; /* -1 = not ok */
} }
...@@ -1249,25 +1249,25 @@ static int wd7000_adapter_reset(Adapter * host) ...@@ -1249,25 +1249,25 @@ static int wd7000_adapter_reset(Adapter * host)
switch (diag) { switch (diag) {
case 2: case 2:
printk("RAM failure.\n"); printk(KERN_ERR "RAM failure.\n");
break; break;
case 3: case 3:
printk("FIFO R/W failed\n"); printk(KERN_ERR "FIFO R/W failed\n");
break; break;
case 4: case 4:
printk("SBIC register R/W failed\n"); printk(KERN_ERR "SBIC register R/W failed\n");
break; break;
case 5: case 5:
printk("Initialization D-FF failed.\n"); printk(KERN_ERR "Initialization D-FF failed.\n");
break; break;
case 6: case 6:
printk("Host IRQ D-FF failed.\n"); printk(KERN_ERR "Host IRQ D-FF failed.\n");
break; break;
case 7: case 7:
printk("ROM checksum error.\n"); printk(KERN_ERR "ROM checksum error.\n");
break; break;
default: default:
printk("diagnostic code 0x%02Xh received.\n", diag); printk(KERN_ERR "diagnostic code 0x%02Xh received.\n", diag);
} }
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment