aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/hvapi.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-09-29 03:14:49 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-02 23:20:34 -0400
commit5da444aae54f64575a60f1d596ed7706e3089fb0 (patch)
tree50eb6a60a9c56fc2eaa10d06eb62d28f105058bb /arch/sparc/kernel/hvapi.c
parentcrypto: Build SPARC DES algorithms on SPARC only. (diff)
downloadlinux-dev-5da444aae54f64575a60f1d596ed7706e3089fb0.tar.xz
linux-dev-5da444aae54f64575a60f1d596ed7706e3089fb0.zip
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/hvapi.c')
-rw-r--r--arch/sparc/kernel/hvapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/hvapi.c b/arch/sparc/kernel/hvapi.c
index 1032df43ec95..c0a2de0fd624 100644
--- a/arch/sparc/kernel/hvapi.c
+++ b/arch/sparc/kernel/hvapi.c
@@ -194,7 +194,7 @@ void __init sun4v_hvapi_init(void)
bad:
prom_printf("HVAPI: Cannot register API group "
- "%lx with major(%u) minor(%u)\n",
+ "%lx with major(%lu) minor(%lu)\n",
group, major, minor);
prom_halt();
}