Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/mach Remove debug printf (now ktrace does the job)
details: https://anonhg.NetBSD.org/src/rev/a31c1051fc50
branches: trunk
changeset: 540324:a31c1051fc50
user: manu <manu%NetBSD.org@localhost>
date: Mon Dec 09 21:53:28 2002 +0000
description:
Remove debug printf (now ktrace does the job)
diffstat:
sys/compat/mach/mach_errno.c | 6 ++----
sys/compat/mach/mach_port.c | 15 ++-------------
sys/compat/mach/mach_task.c | 7 ++-----
3 files changed, 6 insertions(+), 22 deletions(-)
diffs (146 lines):
diff -r 80d1d66125d5 -r a31c1051fc50 sys/compat/mach/mach_errno.c
--- a/sys/compat/mach/mach_errno.c Mon Dec 09 21:29:20 2002 +0000
+++ b/sys/compat/mach/mach_errno.c Mon Dec 09 21:53:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_errno.c,v 1.6 2002/12/09 21:29:23 manu Exp $ */
+/* $NetBSD: mach_errno.c,v 1.7 2002/12/09 21:53:28 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_errno.c,v 1.6 2002/12/09 21:29:23 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_errno.c,v 1.7 2002/12/09 21:53:28 manu Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -157,7 +157,5 @@
rep->rep_retval = native_to_mach_errno[error];
rep->rep_trailer.msgh_trailer_size = 8;
- DPRINTF(("mach_msg_error: error = %d\n", error));
-
return MACH_MSG_RETURN(p, rep, msgh, sizeof(*rep), maxlen, dst);
}
diff -r 80d1d66125d5 -r a31c1051fc50 sys/compat/mach/mach_port.c
--- a/sys/compat/mach/mach_port.c Mon Dec 09 21:29:20 2002 +0000
+++ b/sys/compat/mach/mach_port.c Mon Dec 09 21:53:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_port.c,v 1.10 2002/12/09 21:29:24 manu Exp $ */
+/* $NetBSD: mach_port.c,v 1.11 2002/12/09 21:53:28 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.10 2002/12/09 21:29:24 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.11 2002/12/09 21:53:28 manu Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -59,7 +59,6 @@
{
static int current_port = 0x80b;
- DPRINTF(("mach_sys_reply_port();\n"));
*retval = current_port; /* XXX */
return 0;
}
@@ -70,7 +69,6 @@
void *v;
register_t *retval;
{
- DPRINTF(("mach_sys_thread_self_trap();\n"));
*retval = 0; /* XXX */
return 0;
}
@@ -82,7 +80,6 @@
void *v;
register_t *retval;
{
- DPRINTF(("mach_sys_task_self_trap();\n"));
*retval = 0xa07; /* XXX */
return 0;
}
@@ -94,7 +91,6 @@
void *v;
register_t *retval;
{
- DPRINTF(("mach_sys_host_self_trap();\n"));
*retval = 0x90b; /* XXX */
return 0;
}
@@ -113,7 +109,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_port_deallocate();\n"));
bzero(&rep, sizeof(rep));
rep.rep_msgh.msgh_bits =
@@ -140,8 +135,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_port_allocate();\n"));
-
bzero(&rep, sizeof(rep));
rep.rep_msgh.msgh_bits =
@@ -168,8 +161,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_port_insert_right();\n"));
-
bzero(&rep, sizeof(rep));
rep.rep_msgh.msgh_bits =
@@ -196,8 +187,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_port_type();\n"));
-
bzero(&rep, sizeof(rep));
rep.rep_msgh.msgh_bits =
diff -r 80d1d66125d5 -r a31c1051fc50 sys/compat/mach/mach_task.c
--- a/sys/compat/mach/mach_task.c Mon Dec 09 21:29:20 2002 +0000
+++ b/sys/compat/mach/mach_task.c Mon Dec 09 21:53:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_task.c,v 1.8 2002/12/09 21:29:25 manu Exp $ */
+/* $NetBSD: mach_task.c,v 1.9 2002/12/09 21:53:28 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_task.c,v 1.8 2002/12/09 21:29:25 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_task.c,v 1.9 2002/12/09 21:53:28 manu Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -69,7 +69,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_task_get_special_port();\n"));
bzero(&rep, sizeof(rep));
rep.rep_msgh.msgh_bits =
@@ -101,8 +100,6 @@
if ((error = copyin(msgh, &req, sizeof(req))) != 0)
return error;
- DPRINTF(("mach_ports_lookup();\n"));
-
bzero(&evc, sizeof(evc));
evc.ev_addr = 0x00008000;
evc.ev_len = PAGE_SIZE;
Home |
Main Index |
Thread Index |
Old Index