aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/user/syscall.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c
index 15b0851..3a67350 100644
--- a/src/kernel/user/syscall.c
+++ b/src/kernel/user/syscall.c
@@ -60,7 +60,11 @@ static uint32_t dbg_print_sc(sc_args_t args) {
char* msg = sc_copy_string_x(args.a, args.b);
if (msg == 0) return -1;
- dbg_print(msg);
+ if (strchr(msg, '\n')) {
+ dbg_printf("[%d] %s", current_process()->pid, msg);
+ } else {
+ dbg_print(msg);
+ }
free(msg);
return 0;