diff options
author | Marvin Borner | 2019-11-01 13:13:40 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-01 13:13:40 +0100 |
commit | 1994399448a298d3fc5474b3ca6272e1c699c7df (patch) | |
tree | 591e4f14fe2e8100343d7c80c04df31815509223 /src/kernel/io | |
parent | ef8652520516e9c8dfdf8c1030319ea9634975d5 (diff) |
Fixed VGA buffer logging
Diffstat (limited to 'src/kernel/io')
-rw-r--r-- | src/kernel/io/io.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c index 974c391..acbe3dc 100644 --- a/src/kernel/io/io.c +++ b/src/kernel/io/io.c @@ -88,19 +88,6 @@ void serial_write_hex(int n) { } void serial_write_dec(int n) { - if (n == 0) serial_put('0'); - int acc = n; - char c[32]; - int i = 0; - while (acc > 0) { - c[i] = '0' + acc % 10; - acc /= 10; - i++; - } - c[i] = 0; - static char c2[32]; - c2[i--] = 0; - int j = 0; - while (i >= 0) c2[i--] = c[j++]; - serial_write(c2); + char string[16]; + serial_write(itoa(n, string)); } |