Skip to content
Snippets Groups Projects
Commit 15b17ab5 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Anatolij Gustschin
Browse files

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: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 70dbc54c
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,20 @@ void lcd_puts (const char *s) ...@@ -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 */ /* ** Low-Level Graphics Routines */
/************************************************************************/ /************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment