aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/print.c')
-rw-r--r--libs/libc/print.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/libc/print.c b/libs/libc/print.c
index 264f893..7c40a8b 100644
--- a/libs/libc/print.c
+++ b/libs/libc/print.c
@@ -194,9 +194,10 @@ int printf(const char *format, ...)
int print_prefix(void)
{
- serial_print(CYN "[LOG] to ");
- serial_print(proc_current()->name);
- serial_print(": ");
+ char buf[64] = { 0 };
+ snprintf(buf, sizeof(buf), CYN "[LOG] to %s (%d): ", proc_current()->name,
+ proc_current()->pid);
+ serial_print(buf);
return 1;
}