aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/syscall.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-05-09 19:29:06 +0200
committerAlex Auvolat <alex@adnab.me>2017-05-09 19:29:06 +0200
commit83cc53def0abb6f44ebd95a7175e717e3c66cd48 (patch)
tree87e7beecd0f3f059a4a61ba0c819d2883846cee2 /src/kernel/user/syscall.c
parentd1aed44edf1bd6ab9cc11d7c8796051a5ae8e79d (diff)
downloadkogata-83cc53def0abb6f44ebd95a7175e717e3c66cd48.tar.gz
kogata-83cc53def0abb6f44ebd95a7175e717e3c66cd48.zip
Grids & lua debugging
Diffstat (limited to 'src/kernel/user/syscall.c')
-rw-r--r--src/kernel/user/syscall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c
index 9497bf2..db32fa9 100644
--- a/src/kernel/user/syscall.c
+++ b/src/kernel/user/syscall.c
@@ -61,10 +61,9 @@ uint32_t dbg_print_sc(sc_args_t args) {
if (msg == 0) return -1;
if (strchr(msg, '\n')) {
- dbg_printf("[%d] %s", current_process()->pid, msg);
- } else {
- dbg_print(msg);
+ dbg_printf("[%d] ", current_process()->pid);
}
+ dbg_print(msg);
free(msg);
return 0;