From: Benjamin Herrenschmidt Date: Thu, 14 May 2020 02:03:39 +0000 (+1000) Subject: console: Remove putstr() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edbbf9a125400a716b3021c70e3f6ef4ede36fee;p=microwatt.git console: Remove putstr() Signed-off-by: Benjamin Herrenschmidt --- diff --git a/include/console.h b/include/console.h index a16db9a..cfd9dc1 100644 --- a/include/console.h +++ b/include/console.h @@ -5,6 +5,5 @@ void potato_uart_irq_en(void); void potato_uart_irq_dis(void); int getchar(void); int putchar(int c); -void putstr(const char *str, unsigned long len); int puts(const char *str); size_t strlen(const char *s); diff --git a/lib/console.c b/lib/console.c index 66a7d3a..fa2ade3 100644 --- a/lib/console.c +++ b/lib/console.c @@ -107,13 +107,6 @@ int putchar(int c) return c; } -void putstr(const char *str, unsigned long len) -{ - for (unsigned long i = 0; i < len; i++) { - putchar(str[i]); - } -} - int puts(const char *str) { unsigned int i;