diff options
author | Marvin Borner | 2021-04-05 19:37:50 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-05 19:37:50 +0200 |
commit | 9326d3970fe6eedbcb042ac68aca3074aacef32f (patch) | |
tree | 9157b9e57b052012379e4103aaed3235d1b50e9e /kernel/drivers | |
parent | ccc1dd7b4ba8ad5efe51aac32b26f0859d93fbe5 (diff) |
Fixed some minor bugs
Diffstat (limited to 'kernel/drivers')
-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); } |