diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2003-01-02 02:19:10 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2003-01-02 02:19:10 +0000 |
commit | e15583ce201e83b844d98e20859ca8f73e9c6103 (patch) | |
tree | 99826f563971bf97a7c515ce2142bc0961221917 /sys/compat/linux/linux_util.c | |
parent | 82e10e2428f1b8d70312f011023f1a790addad0e (diff) |
Add function linux_msg() for regulating output from the linux emulation
code, make the emulator use it.
Rename unsupported_msg() to unimplemented_syscall(). Rename some arguments
for clarity
Fixup grammar.
Requested by: bde
Notes
Notes:
svn path=/head/; revision=108541
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"); +} |