diff options
Diffstat (limited to 'sys/compat/linux/common/linux_socketcall.c')
| -rw-r--r-- | sys/compat/linux/common/linux_socketcall.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_socketcall.c b/sys/compat/linux/common/linux_socketcall.c index b2915e85442..8a913fb0d01 100644 --- a/sys/compat/linux/common/linux_socketcall.c +++ b/sys/compat/linux/common/linux_socketcall.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socketcall.c,v 1.25 2003/01/18 21:21:36 thorpej Exp $ */ +/* $NetBSD: linux_socketcall.c,v 1.26 2004/08/29 20:45:18 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.25 2003/01/18 21:21:36 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socketcall.c,v 1.26 2004/08/29 20:45:18 jdolecek Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -141,6 +141,18 @@ linux_sys_socketcall(l, v, retval) return error; } +#ifdef DEBUG_LINUX + { + int i; + u_int8_t *data = (void *)&lda.dummy_ints[1]; + + DPRINTF(("linux_socketcall: socket %d [", lda.dummy_ints[0])); + for(i=0; i < sizeof(lda) - sizeof(lda.dummy_ints[0]); i++) + DPRINTF(("%02x ", data[i])); + DPRINTF(("]\n")); + } +#endif + switch (SCARG(uap, what)) { case LINUX_SYS_socket: error = linux_sys_socket(l, (void *)&lda, retval); |
