diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/lcd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/lcd.c b/common/lcd.c index d104b26..03d5841 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 */ /************************************************************************/ |