summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-04 23:20:21 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-04 23:20:21 +0000
commit9f5f2158a743fc2d7de63c05d38d8133c6b4d15d (patch)
treeea4bbb6158dd337b600e537a4b139004c5ff527c /flashrom.c
parentb5b161b260b119d90a7f22e1c8ec1174de5eacf9 (diff)
downloadast2050-flashrom-9f5f2158a743fc2d7de63c05d38d8133c6b4d15d.zip
ast2050-flashrom-9f5f2158a743fc2d7de63c05d38d8133c6b4d15d.tar.gz
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>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 8a97454..73145a9 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -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;
}
OpenPOWER on IntegriCloud