mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Gcc and clang can check format strings of printf-like functions
Since we don't support any other compilers right now, enable that extension unconditionally. Fix the bugs found by format string checking. Corresponding to flashrom svn r1032. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
@ -394,7 +394,7 @@ struct shutdown_func_data {
|
||||
int register_shutdown(void (*function) (void *data), void *data)
|
||||
{
|
||||
if (shutdown_fn_count >= SHUTDOWN_MAXFN) {
|
||||
msg_perr("Tried to register more than %n shutdown functions.\n",
|
||||
msg_perr("Tried to register more than %i shutdown functions.\n",
|
||||
SHUTDOWN_MAXFN);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user