diff options
Diffstat (limited to 'src/kernel/syscall/actions/sys_write.c')
-rw-r--r-- | src/kernel/syscall/actions/sys_write.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c index 554ac5f..8531e85 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -9,12 +9,10 @@ uint32_t sys_write(char *buf) return strlen((const char *) buf); } -uint32_t sys_writec(char ch) +uint32_t sys_writec(char *ch) { - serial_write_hex(ch); - serial_write("\n"); - serial_put(ch); + serial_write_hex(*ch); serial_write("\n\n"); - writec(ch); + writec((char) *ch); return 0; }
\ No newline at end of file |