mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
um: add earlyprintk support
User Mode Linux can also benefit from earlyprintk. UML's earlyprintk writes kernel messages directly to stdout. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2525e70d49
commit
d634f194d4
5 changed files with 50 additions and 0 deletions
|
@ -139,3 +139,8 @@ void os_dump_core(void)
|
|||
|
||||
uml_abort();
|
||||
}
|
||||
|
||||
void um_early_printk(const char *s, unsigned int n)
|
||||
{
|
||||
printf("%.*s", n, s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue