[U-Boot] [PATCH 11/12] x86: Define CONFIG_SYS_VSNPRINTF for coreboot

Simon Glass sjg at chromium.org
Sun Oct 21 00:33:15 CEST 2012


This option protects the printf() functions from overflow.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 include/configs/coreboot.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h
index fe589f3..56bc699 100644
--- a/include/configs/coreboot.h
+++ b/include/configs/coreboot.h
@@ -38,6 +38,7 @@
 #undef CONFIG_SHOW_BOOT_PROGRESS
 #define CONFIG_LAST_STAGE_INIT
 #define CONFIG_NO_RESET_CODE
+#define CONFIG_SYS_VSNPRINTF
 
 #define CONFIG_STD_DEVICES_SETTINGS     "stdin=usbkbd,vga,serial\0" \
 					"stdout=vga,serial,cbmem\0" \
-- 
1.7.7.3



More information about the U-Boot mailing list