1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +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:
Carl-Daniel Hailfinger
2010-06-04 23:20:21 +00:00
parent b5b161b260
commit 9f5f2158a7
3 changed files with 4 additions and 3 deletions

View File

@ -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. ");
}