lib: sbi: Speed-up sbi_printf() and friends using nputs()
authorAnup Patel <apatel@ventanamicro.com>
Fri, 13 Jan 2023 09:23:53 +0000 (14:53 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 10 Feb 2023 05:00:18 +0000 (10:30 +0530)
commit65c2190b47b14341dac9f763fed2d4ecbbff2a69
treeaba5ad772a23821eda85097875e71429fa949f05
parent29285aead07d2778855e1e67ba9c08b4fa4a2c7a
lib: sbi: Speed-up sbi_printf() and friends using nputs()

The sbi_printf() is slow for semihosting because it prints one
character at a time. To speed-up sbi_printf() for semihosting,
we use a temporary buffer and nputs().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
lib/sbi/sbi_console.c