mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 04:56:30 +00:00
🆕 vsprintk
This commit is contained in:
@ -890,4 +890,16 @@ void printk_enable_animation()
|
||||
void printk_disable_animation()
|
||||
{
|
||||
sw_show_scroll_animation = false;
|
||||
}
|
||||
|
||||
int sprintk(char *buf, const char *fmt, ...)
|
||||
{
|
||||
int count = 0;
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
count = vsprintf(buf, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
return count;
|
||||
}
|
Reference in New Issue
Block a user