diff options
Diffstat (limited to 'sys/compat/linux/linux_util.c')
-rw-r--r-- | sys/compat/linux/linux_util.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index 7b34586966e2..5bd8c15fa359 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -37,6 +37,8 @@ #include <sys/malloc.h> #include <sys/vnode.h> +#include <machine/stdarg.h> + #include <compat/linux/linux_util.h> const char linux_emul_path[] = "/compat/linux"; @@ -200,3 +202,17 @@ keeporig: bcopy(ptr, buf, len); return error; } + +void +linux_msg(const struct thread *td, const char *fmt, ...) +{ + va_list ap; + struct proc *p; + + p = td->td_proc; + printf("linux: pid %d (%s): ", (int)p->p_pid, p->p_comm); + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); + printf("\n"); +} |