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>
This commit is contained in:
committed by
David S. Miller
parent
97da37b35f
commit
5da444aae5
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user