From 41fe2c78d422ad892056521848d95cd8cb4588a6 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Fri, 4 Jun 2010 23:20:21 +0000 Subject: 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 Acked-by: Sean Nelson --- udelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udelay.c') diff --git a/udelay.c b/udelay.c index b395971..8bfba63 100644 --- a/udelay.c +++ b/udelay.c @@ -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. "); } -- cgit v1.1