diff options
author | Dmitri Vorobiev <dmitri.vorobiev@gmail.com> | 2008-01-24 11:52:42 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:15:03 -0500 |
commit | 8216d348e374b369338f015ca34492de1e381214 (patch) | |
tree | f0e6e8fdf4259ea808e0475efc7c82c1d9894f68 /arch/mips | |
parent | 4ca765135414e85c80f0a68bb35189472bb9ad1e (diff) |
[MIPS] Malta: use the KERN_ facility level in printk()
This patch adds the KERN_ macros to printk() calls. Where applicable,
spaces are replaced by tabs.
These changes noticeably reduce the number of errors and warnings
reported by the checkpatch.pl script for the malta_int.c file.
Before the patch: total: 47 errors, 20 warnings, 354 lines checked
After the patch: total: 34 errors, 7 warnings, 355 lines checked
No functional changes introduced.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mips-boards/malta/malta_int.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/arch/mips/mips-boards/malta/malta_int.c b/arch/mips/mips-boards/malta/malta_int.c index f010261b75d8..2483b4068e2d 100644 --- a/arch/mips/mips-boards/malta/malta_int.c +++ b/arch/mips/mips-boards/malta/malta_int.c | |||
@@ -83,7 +83,7 @@ static inline int mips_pcibios_iack(void) | |||
83 | BONITO_PCIMAP_CFG = 0; | 83 | BONITO_PCIMAP_CFG = 0; |
84 | break; | 84 | break; |
85 | default: | 85 | default: |
86 | printk("Unknown system controller.\n"); | 86 | printk(KERN_WARNING "Unknown system controller.\n"); |
87 | return -1; | 87 | return -1; |
88 | } | 88 | } |
89 | return irq; | 89 | return irq; |
@@ -127,8 +127,8 @@ static void corehi_irqdispatch(void) | |||
127 | unsigned int intrcause, datalo, datahi; | 127 | unsigned int intrcause, datalo, datahi; |
128 | struct pt_regs *regs = get_irq_regs(); | 128 | struct pt_regs *regs = get_irq_regs(); |
129 | 129 | ||
130 | printk("CoreHI interrupt, shouldn't happen, so we die here!!!\n"); | 130 | printk(KERN_EMERG "CoreHI interrupt, shouldn't happen, we die here!\n"); |
131 | printk("epc : %08lx\nStatus: %08lx\n" | 131 | printk(KERN_EMERG "epc : %08lx\nStatus: %08lx\n" |
132 | "Cause : %08lx\nbadVaddr : %08lx\n", | 132 | "Cause : %08lx\nbadVaddr : %08lx\n", |
133 | regs->cp0_epc, regs->cp0_status, | 133 | regs->cp0_epc, regs->cp0_status, |
134 | regs->cp0_cause, regs->cp0_badvaddr); | 134 | regs->cp0_cause, regs->cp0_badvaddr); |
@@ -149,8 +149,9 @@ static void corehi_irqdispatch(void) | |||
149 | intrcause = GT_READ(GT_INTRCAUSE_OFS); | 149 | intrcause = GT_READ(GT_INTRCAUSE_OFS); |
150 | datalo = GT_READ(GT_CPUERR_ADDRLO_OFS); | 150 | datalo = GT_READ(GT_CPUERR_ADDRLO_OFS); |
151 | datahi = GT_READ(GT_CPUERR_ADDRHI_OFS); | 151 | datahi = GT_READ(GT_CPUERR_ADDRHI_OFS); |
152 | printk("GT_INTRCAUSE = %08x\n", intrcause); | 152 | printk(KERN_EMERG "GT_INTRCAUSE = %08x\n", intrcause); |
153 | printk("GT_CPUERR_ADDR = %02x%08x\n", datahi, datalo); | 153 | printk(KERN_EMERG "GT_CPUERR_ADDR = %02x%08x\n", |
154 | datahi, datalo); | ||
154 | break; | 155 | break; |
155 | case MIPS_REVISION_SCON_BONITO: | 156 | case MIPS_REVISION_SCON_BONITO: |
156 | pcibadaddr = BONITO_PCIBADADDR; | 157 | pcibadaddr = BONITO_PCIBADADDR; |
@@ -161,14 +162,14 @@ static void corehi_irqdispatch(void) | |||
161 | intedge = BONITO_INTEDGE; | 162 | intedge = BONITO_INTEDGE; |
162 | intsteer = BONITO_INTSTEER; | 163 | intsteer = BONITO_INTSTEER; |
163 | pcicmd = BONITO_PCICMD; | 164 | pcicmd = BONITO_PCICMD; |
164 | printk("BONITO_INTISR = %08x\n", intisr); | 165 | printk(KERN_EMERG "BONITO_INTISR = %08x\n", intisr); |
165 | printk("BONITO_INTEN = %08x\n", inten); | 166 | printk(KERN_EMERG "BONITO_INTEN = %08x\n", inten); |
166 | printk("BONITO_INTPOL = %08x\n", intpol); | 167 | printk(KERN_EMERG "BONITO_INTPOL = %08x\n", intpol); |
167 | printk("BONITO_INTEDGE = %08x\n", intedge); | 168 | printk(KERN_EMERG "BONITO_INTEDGE = %08x\n", intedge); |
168 | printk("BONITO_INTSTEER = %08x\n", intsteer); | 169 | printk(KERN_EMERG "BONITO_INTSTEER = %08x\n", intsteer); |
169 | printk("BONITO_PCICMD = %08x\n", pcicmd); | 170 | printk(KERN_EMERG "BONITO_PCICMD = %08x\n", pcicmd); |
170 | printk("BONITO_PCIBADADDR = %08x\n", pcibadaddr); | 171 | printk(KERN_EMERG "BONITO_PCIBADADDR = %08x\n", pcibadaddr); |
171 | printk("BONITO_PCIMSTAT = %08x\n", pcimstat); | 172 | printk(KERN_EMERG "BONITO_PCIMSTAT = %08x\n", pcimstat); |
172 | break; | 173 | break; |
173 | } | 174 | } |
174 | 175 | ||