software/bios/console: Call putsnonl() from puts()
puts() and putsnonl() are very similar, and can share code. Reduce code size by making the former call the latter. Impact for a RISC-V build: $ size console.o.orig console.o text data bss dec hex filename 868 0 12 880 370 console.o.orig 832 0 12 844 34c console.o Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
8e4202ced1
commit
84e5130ac5
|
@ -75,10 +75,7 @@ int readchar_nonblock(void)
|
|||
|
||||
int puts(const char *s)
|
||||
{
|
||||
while(*s) {
|
||||
putchar(*s);
|
||||
s++;
|
||||
}
|
||||
putsnonl(s);
|
||||
putchar('\n');
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue