Fix incorrect format strings

In many cases format strings in vboot_reference do not match their
parameters, which causes all kind of ugly results when examining debug
output.

Enforce proper format verification.

CQ-DEPEND=CL:65396
BRANCH=pit
BUG=none
TEST=manual
   . compiled cleanly in vboot_reference, observed debug printouts
     making sense.

Change-Id: I58d5ba1f9097ef9922fbaeb7a9946aadf5eb8617
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/65394
This commit is contained in:
Vadim Bendebury
2013-08-09 16:02:28 -07:00
committed by ChromeBot
parent 53710471b5
commit 7aa250f2db
4 changed files with 11 additions and 9 deletions

View File

@@ -372,7 +372,8 @@ void VbExError(const char *format, ...);
/**
* Output a debug message. Supports printf()-style formatting.
*/
void VbExDebug(const char *format, ...);
void VbExDebug(const char *format, ...)
__attribute__ ((format (__printf__, 1, 2)));
/*****************************************************************************/
/* Memory (from utility.h) */