diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-06-04 23:20:21 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-06-04 23:20:21 +0000 |
commit | 41fe2c78d422ad892056521848d95cd8cb4588a6 (patch) | |
tree | ea4bbb6158dd337b600e537a4b139004c5ff527c /udelay.c | |
parent | 9130c5b3892d3b8b6de11dae3d7d4a9421810f5d (diff) | |
download | flashrom-41fe2c78d422ad892056521848d95cd8cb4588a6.zip flashrom-41fe2c78d422ad892056521848d95cd8cb4588a6.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 'udelay.c')
-rw-r--r-- | udelay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ void myusec_calibrate_delay(void) msg_pinfo("Calibrating delay loop... "); resolution = measure_os_delay_resolution(); if (resolution) { - msg_pdbg("OS timer resolution is %u usecs, ", resolution); + msg_pdbg("OS timer resolution is %lu usecs, ", resolution); } else { msg_pinfo("OS timer resolution is unusable. "); } |