aboutsummaryrefslogtreecommitdiff
path: root/common/lcd.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-09-01 16:21:20 +0200
committerAnatolij Gustschin <agust@denx.de>2008-10-25 22:58:51 +0200
commit15b17ab52b7c15d46d9fc631cc06092e1e764de2 (patch)
treeb24743b3767063c75e5ffbc961599958011f3a3a /common/lcd.c
parent70dbc54c0a5c798bcf82ae2a1e227404f412e892 (diff)
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 <haavard.skinnemoen@atmel.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common/lcd.c')
-rw-r--r--common/lcd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/lcd.c b/common/lcd.c
index d104b2604..03d58411c 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 */
/************************************************************************/