🆕 vsprintk

This commit is contained in:
fslongjin
2022-07-11 21:44:00 +08:00
parent 4c9719f477
commit 594aeadf65
2 changed files with 22 additions and 0 deletions

View File

@ -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;
}