diff options
Diffstat (limited to 'kernel/drivers/serial.c')
-rw-r--r-- | kernel/drivers/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |