mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-30 10:10:17 +00:00
iodev: Do not print leading * for empty buffer prints on alt path
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
0786894201
commit
aa72f50e50
1 changed files with 5 additions and 3 deletions
|
@ -83,9 +83,11 @@ int in_iodev = 0;
|
||||||
void iodev_console_write(const void *buf, size_t length)
|
void iodev_console_write(const void *buf, size_t length)
|
||||||
{
|
{
|
||||||
if (in_iodev || !is_primary_core()) {
|
if (in_iodev || !is_primary_core()) {
|
||||||
iodev_write(IODEV_UART, "*", 1);
|
if (length) {
|
||||||
iodev_write(IODEV_UART, buf, length);
|
iodev_write(IODEV_UART, "*", 1);
|
||||||
return;
|
iodev_write(IODEV_UART, buf, length);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
in_iodev++;
|
in_iodev++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue