Index: linux_mib.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_mib.c,v retrieving revision 1.23 diff -u -r1.23 linux_mib.c --- linux_mib.c 14 Jan 2005 04:44:56 -0000 1.23 +++ linux_mib.c 3 Jun 2005 19:24:31 -0000 @@ -360,3 +360,8 @@ "Linux debugging control"); #endif /* DEBUG */ + +int linux_syscall_warn_enable = 1; + +SYSCTL_INT(_compat_linux, OID_AUTO, syscall_warn_enable, CTLFLAG_RW, + &linux_syscall_warn_enable, 0, "warn when executing an unimplimented syscall"); Index: linux_mib.h =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_mib.h,v retrieving revision 1.8 diff -u -r1.8 linux_mib.h --- linux_mib.h 26 Mar 2003 18:29:44 -0000 1.8 +++ linux_mib.h 3 Jun 2005 01:58:28 -0000 @@ -31,6 +31,8 @@ #ifndef _LINUX_MIB_H_ #define _LINUX_MIB_H_ +extern int linux_syscall_warn_enable; + void linux_mib_destroy(void); void linux_get_osname(struct thread *td, char *dst); Index: linux_util.h =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_util.h,v retrieving revision 1.25 diff -u -r1.25 linux_util.h --- linux_util.h 1 Mar 2005 17:57:45 -0000 1.25 +++ linux_util.h 3 Jun 2005 01:59:38 -0000 @@ -49,6 +49,8 @@ #include #include +#include + static __inline caddr_t stackgap_init(void); static __inline void *stackgap_alloc(caddr_t *, size_t); @@ -108,7 +110,8 @@ unimplemented_syscall(struct thread *td, const char *syscallname) { - linux_msg(td, "syscall %s not implemented", syscallname); + if (linux_syscall_warn_enable) + linux_msg(td, "syscall %s not implemented", syscallname); return (ENOSYS); }