From 9326d3970fe6eedbcb042ac68aca3074aacef32f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Apr 2021 19:37:50 +0200 Subject: Fixed some minor bugs --- kernel/drivers/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/drivers') diff --git a/kernel/drivers/serial.c b/kernel/drivers/serial.c index 6f00ac7..c6172a6 100644 --- a/kernel/drivers/serial.c +++ b/kernel/drivers/serial.c @@ -30,6 +30,6 @@ void serial_put(char ch) void serial_print(const char *data) { - for (u32 i = 0; i < strlen(data); i++) - serial_put(data[i]); + for (const char *p = data; p && *p; p++) + serial_put(*p); } -- cgit v1.2.3