| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH][MIPS] fix warning of printk format in mips_srs_init() |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Tue, 31 Oct 2006 13:44:38 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi Ralf,
This patch has fixed the warning of printk format in mips_srs_init().
arch/mips/kernel/traps.c:1115: warning: int format, long unsigned int arg (arg
2)
Yoichi
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/kernel/traps.c
mips/arch/mips/kernel/traps.c
--- mips-orig/arch/mips/kernel/traps.c 2006-10-29 13:07:07.791518500 +0900
+++ mips/arch/mips/kernel/traps.c 2006-10-29 17:10:15.363553250 +0900
@@ -1111,7 +1111,7 @@ static struct shadow_registers {
static void mips_srs_init(void)
{
shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1;
- printk(KERN_INFO "%d MIPSR2 register sets available\n",
+ printk(KERN_INFO "%ld MIPSR2 register sets available\n",
shadow_registers.sr_supported);
shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][MIPS] fix wrong prom_getcmdline() definition, Yoichi Yuasa |
|---|---|
| Next by Date: | [PATCH][MIPS] fix uninitialized variable in titan_i2c_xfer(), Yoichi Yuasa |
| Previous by Thread: | [PATCH][MIPS] fix wrong prom_getcmdline() definition, Yoichi Yuasa |
| Next by Thread: | Re: [PATCH][MIPS] fix warning of printk format in mips_srs_init(), Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |