diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-11 12:11:02 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-11 12:11:02 +0100 |
commit | 35c1120a6069414dd279b988eb772f4eec0966f7 (patch) | |
tree | ae8ac18dc704b80a450692b6862f02d8b1ff186e /src/kernel/user | |
parent | bde334e6393b142d9953328e9ea2881ce88a1a7b (diff) | |
download | kogata-35c1120a6069414dd279b988eb772f4eec0966f7.tar.gz kogata-35c1120a6069414dd279b988eb772f4eec0966f7.zip |
Clear screen from GIP client (in login)
Diffstat (limited to 'src/kernel/user')
-rw-r--r-- | src/kernel/user/syscall.c | 6 |
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; |