1
0
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:
Benjamin Herrenschmidt
2020-05-14 12:03:01 +10:00
parent 88b28a7b17
commit a87b86e54f
6 changed files with 51 additions and 51 deletions

View File

@@ -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();