mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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:
parent
97da37b35f
commit
5da444aae5
7 changed files with 11 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue