Commit 446926f9 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

m68k/q40: Modernize printing of kernel messages

  - Convert from printk() to pr_*(),
  - Use TABs for indentation while at it.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 3c8bc6b7
...@@ -84,7 +84,7 @@ static int __init q40_debug_setup(char *arg) ...@@ -84,7 +84,7 @@ static int __init q40_debug_setup(char *arg)
{ {
/* useful for early debugging stages - writes kernel messages into SRAM */ /* useful for early debugging stages - writes kernel messages into SRAM */
if (MACH_IS_Q40 && !strncmp(arg, "mem", 3)) { if (MACH_IS_Q40 && !strncmp(arg, "mem", 3)) {
/*printk("using NVRAM debug, q40_mem_cptr=%p\n",q40_mem_cptr);*/ /*pr_info("using NVRAM debug, q40_mem_cptr=%p\n",q40_mem_cptr);*/
_cpleft = 2000 - ((long)q40_mem_cptr-0xff020000) / 4; _cpleft = 2000 - ((long)q40_mem_cptr-0xff020000) / 4;
register_console(&q40_console_driver); register_console(&q40_console_driver);
} }
...@@ -124,8 +124,8 @@ static void q40_heartbeat(int on) ...@@ -124,8 +124,8 @@ static void q40_heartbeat(int on)
static void q40_reset(void) static void q40_reset(void)
{ {
halted = 1; halted = 1;
printk("\n\n*******************************************\n" pr_info("*******************************************\n"
"Called q40_reset : press the RESET button!!\n" "Called q40_reset : press the RESET button!!\n"
"*******************************************\n"); "*******************************************\n");
Q40_LED_ON(); Q40_LED_ON();
...@@ -135,10 +135,10 @@ static void q40_reset(void) ...@@ -135,10 +135,10 @@ static void q40_reset(void)
static void q40_halt(void) static void q40_halt(void)
{ {
halted = 1; halted = 1;
printk("\n\n*******************\n" pr_info("*******************\n"
" Called q40_halt\n" " Called q40_halt\n"
"*******************\n"); "*******************\n");
Q40_LED_ON(); Q40_LED_ON();
while (1) while (1)
; ;
......
...@@ -48,7 +48,8 @@ static unsigned int q40_irq_startup(struct irq_data *data) ...@@ -48,7 +48,8 @@ static unsigned int q40_irq_startup(struct irq_data *data)
switch (irq) { switch (irq) {
case 1: case 2: case 8: case 9: case 1: case 2: case 8: case 9:
case 11: case 12: case 13: case 11: case 12: case 13:
printk("%s: ISA IRQ %d not implemented by HW\n", __func__, irq); pr_warn("%s: ISA IRQ %d not implemented by HW\n", __func__,
irq);
/* FIXME return -ENXIO; */ /* FIXME return -ENXIO; */
} }
return 0; return 0;
...@@ -250,7 +251,7 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp) ...@@ -250,7 +251,7 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp)
disable_irq(irq); disable_irq(irq);
disabled = 1; disabled = 1;
#else #else
/*printk("IRQ_INPROGRESS detected for irq %d, disabling - %s disabled\n", /*pr_warn("IRQ_INPROGRESS detected for irq %d, disabling - %s disabled\n",
irq, disabled ? "already" : "not yet"); */ irq, disabled ? "already" : "not yet"); */
fp->sr = (((fp->sr) & (~0x700))+0x200); fp->sr = (((fp->sr) & (~0x700))+0x200);
disabled = 1; disabled = 1;
...@@ -273,7 +274,7 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp) ...@@ -273,7 +274,7 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp)
} }
#else #else
disabled = 0; disabled = 0;
/*printk("reenabling irq %d\n", irq); */ /*pr_info("reenabling irq %d\n", irq); */
#endif #endif
} }
// used to do 'goto repeat;' here, this delayed bh processing too long // used to do 'goto repeat;' here, this delayed bh processing too long
...@@ -281,7 +282,8 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp) ...@@ -281,7 +282,8 @@ static void q40_irq_handler(unsigned int irq, struct pt_regs *fp)
} }
} }
if (mer && ccleirq > 0 && !aliased_irq) { if (mer && ccleirq > 0 && !aliased_irq) {
printk("ISA interrupt from unknown source? EIRQ_REG = %x\n",mer); pr_warn("ISA interrupt from unknown source? EIRQ_REG = %x\n",
mer);
ccleirq--; ccleirq--;
} }
} }
...@@ -301,7 +303,7 @@ void q40_irq_enable(struct irq_data *data) ...@@ -301,7 +303,7 @@ void q40_irq_enable(struct irq_data *data)
if (irq >= 5 && irq <= 15) { if (irq >= 5 && irq <= 15) {
mext_disabled--; mext_disabled--;
if (mext_disabled > 0) if (mext_disabled > 0)
printk("q40_irq_enable : nested disable/enable\n"); pr_warn("q40_irq_enable : nested disable/enable\n");
if (mext_disabled == 0) if (mext_disabled == 0)
master_outb(1, EXT_ENABLE_REG); master_outb(1, EXT_ENABLE_REG);
} }
...@@ -321,6 +323,7 @@ void q40_irq_disable(struct irq_data *data) ...@@ -321,6 +323,7 @@ void q40_irq_disable(struct irq_data *data)
master_outb(0, EXT_ENABLE_REG); master_outb(0, EXT_ENABLE_REG);
mext_disabled++; mext_disabled++;
if (mext_disabled > 1) if (mext_disabled > 1)
printk("disable_irq nesting count %d\n",mext_disabled); pr_info("disable_irq nesting count %d\n",
mext_disabled);
} }
} }
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