From 6cfdd8bdbf17d632b65149a8fdbf3c0ee3f5490b Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sun, 29 Aug 2004 20:45:18 +0000 Subject: dump socketcall data #ifdef DEBUG_LINUX --- sys/compat/linux/common/linux_socketcall.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/common/linux_socketcall.c') 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 -__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 #include @@ -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); -- cgit