diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2012-09-29 07:14:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-03 07:20:34 +0400 |
commit | 5da444aae54f64575a60f1d596ed7706e3089fb0 (patch) | |
tree | 50eb6a60a9c56fc2eaa10d06eb62d28f105058bb /arch/sparc/kernel/traps_64.c | |
parent | 97da37b35fc56ed7b2b1583208be0d1327ddcf30 (diff) | |
download | linux-5da444aae54f64575a60f1d596ed7706e3089fb0.tar.xz |
sparc: fix format string argument for prom_printf()
prom_printf() takes printf style arguments. Specifing GCC's format
attribute reveals that there are several wrong usages of prom_printf().
This fixes those wrong format strings and arguments, and also leaves
format attributes in order to detect similar mistakes at compile time.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/traps_64.c')
-rw-r--r-- | arch/sparc/kernel/traps_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c index 3b05e6697710..fa1f1d375ffc 100644 --- a/arch/sparc/kernel/traps_64.c +++ b/arch/sparc/kernel/traps_64.c @@ -850,7 +850,7 @@ void __init cheetah_ecache_flush_init(void) ecache_flush_physbase = find_ecache_flush_span(ecache_flush_size); if (ecache_flush_physbase == ~0UL) { - prom_printf("cheetah_ecache_flush_init: Cannot find %d byte " + prom_printf("cheetah_ecache_flush_init: Cannot find %ld byte " "contiguous physical memory.\n", ecache_flush_size); prom_halt(); |