mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-29 05:25:47 +00:00
console: Replace putstr with puts
It makes things a bit more standard and a bit nicer to read without all those strlen(). Also console.c takes care of adding the carriage returns before the linefeeds. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
@@ -20,14 +20,14 @@ void init_bss()
|
||||
}
|
||||
}
|
||||
|
||||
#define HELLO_WORLD "Hello World\r\n"
|
||||
#define HELLO_WORLD "Hello World\n"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
init_bss();
|
||||
potato_uart_init();
|
||||
|
||||
putstr(HELLO_WORLD, strlen(HELLO_WORLD));
|
||||
puts(HELLO_WORLD);
|
||||
|
||||
rust_main();
|
||||
crash();
|
||||
|
||||
Reference in New Issue
Block a user