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

login
register
mail settings
Submitter Simon Glass
Date Oct. 20, 2012, 10:33 p.m.
Message ID <1350772396-28946-12-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/192963/
State Accepted, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - Oct. 20, 2012, 10:33 p.m.
This option protects the printf() functions from overflow.

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

Patch

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" \