]> git.sur5r.net Git - u-boot/commitdiff
lcd: Implement lcd_printf()
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 14:21:20 +0000 (16:21 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 25 Oct 2008 20:58:51 +0000 (22:58 +0200)
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 <haavard.skinnemoen@atmel.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/lcd.c

index d104b2604943df7251b3bbdab7e50e78d79f9eda..03d58411cf24526ee3f254d15cfae8d83c00575b 100644 (file)
@@ -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                                      */
 /************************************************************************/