From edbbf9a125400a716b3021c70e3f6ef4ede36fee Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 14 May 2020 12:03:39 +1000 Subject: [PATCH] console: Remove putstr() Signed-off-by: Benjamin Herrenschmidt --- include/console.h | 1 - lib/console.c | 7 ------- 2 files changed, 8 deletions(-) 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;