From: Haavard Skinnemoen Date: Mon, 1 Sep 2008 14:21:20 +0000 (+0200) Subject: lcd: Implement lcd_printf() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=15b17ab52b7c15d46d9fc631cc06092e1e764de2;p=project%2Fbcm63xx%2Fu-boot.git lcd: Implement lcd_printf() lcd_printf() has a prototype in include/lcd.h but no implementation. Fix this by borrowing the lcd_printf() implementation from the cogent board code (which appears to use its own LCD framework.) Signed-off-by: Haavard Skinnemoen Signed-off-by: Anatolij Gustschin --- diff --git a/common/lcd.c b/common/lcd.c index d104b26049..03d58411cf 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -225,6 +225,20 @@ void lcd_puts (const char *s) } } +/*----------------------------------------------------------------------*/ + +void lcd_printf(const char *fmt, ...) +{ + va_list args; + char buf[CONFIG_SYS_PBSIZE]; + + va_start(args, fmt); + vsprintf(buf, fmt, args); + va_end(args); + + lcd_puts(buf); +} + /************************************************************************/ /* ** Low-Level Graphics Routines */ /************************************************************************/