diff --git a/litex/soc/software/bios/readline.c b/litex/soc/software/bios/readline.c index f507f1a65..a255ebfaa 100644 --- a/litex/soc/software/bios/readline.c +++ b/litex/soc/software/bios/readline.c @@ -190,7 +190,7 @@ int readline(char *buf, int len) unsigned int eol_num = 0; unsigned int wlen; int insert = 1; - char ichar; + unsigned char ichar; #ifndef TERM_NO_COMPLETE char tmp; diff --git a/litex/soc/software/libbase/console.c b/litex/soc/software/libbase/console.c index ec434643b..cd62b5c68 100644 --- a/litex/soc/software/libbase/console.c +++ b/litex/soc/software/libbase/console.c @@ -75,10 +75,7 @@ int readchar_nonblock(void) int puts(const char *s) { - while(*s) { - putchar(*s); - s++; - } + putsnonl(s); putchar('\n'); return 1; }