The code compiled fine on the desktop, but causes a warning in the chroot environment, which in turn causes make to stop.
The fix is to use an explicit format statement.
Tested in chroot environment for x86-generic - was failing before the fix and passes after the fix.
TBR: msb
Review URL: http://codereview.chromium.org/2808009
diff --git a/utility/sign_image.c b/utility/sign_image.c
index 51628e3..672e47f 100644
--- a/utility/sign_image.c
+++ b/utility/sign_image.c
@@ -20,7 +20,7 @@
static char* help_mesg =
"Usage: sign_image <fw_version> <fw_key_block> <signing_key> "
"<kernel_public_key> <firmware_file> <output_file>\n";
- printf(help_mesg);
+ printf("%s", help_mesg);
}
int SignAndWriteImage(uint64_t fw_version, VbKeyBlockHeader* wrapper_kb,