Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common dump socketcall data #ifdef DEBUG_LINUX
details: https://anonhg.NetBSD.org/src/rev/4fbb5a44b0ef
branches: trunk
changeset: 569686:4fbb5a44b0ef
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Aug 29 20:45:18 2004 +0000
description:
dump socketcall data #ifdef DEBUG_LINUX
diffstat:
sys/compat/linux/common/linux_socketcall.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 2facae8ebca3 -r 4fbb5a44b0ef sys/compat/linux/common/linux_socketcall.c
--- a/sys/compat/linux/common/linux_socketcall.c Sun Aug 29 20:10:42 2004 +0000
+++ b/sys/compat/linux/common/linux_socketcall.c Sun Aug 29 20:45:18 2004 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index