Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Don't spew so much to the console without...
details: https://anonhg.NetBSD.org/src/rev/58d5d8a43fef
branches: trunk
changeset: 521888:58d5d8a43fef
user: tv <tv%NetBSD.org@localhost>
date: Thu Feb 07 23:23:29 2002 +0000
description:
Don't spew so much to the console without DEBUG.
diffstat:
sys/arch/i386/i386/svr4_machdep.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 40bd082d1441 -r 58d5d8a43fef sys/arch/i386/i386/svr4_machdep.c
--- a/sys/arch/i386/i386/svr4_machdep.c Thu Feb 07 23:22:24 2002 +0000
+++ b/sys/arch/i386/i386/svr4_machdep.c Thu Feb 07 23:23:29 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.58 2001/12/21 07:02:23 jdolecek Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.59 2002/02/07 23:23:29 tv Exp $ */
/*-
* Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.58 2001/12/21 07:02:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.59 2002/02/07 23:23:29 tv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vm86.h"
@@ -474,13 +474,17 @@
return error;
}
+#ifdef DEBUG
printf("s=%x, b=%x, l=%x, a1=%x a2=%x\n",
ssd.selector, ssd.base, ssd.limit,
ssd.access1, ssd.access2);
+#endif
/* We can only set ldt's for now. */
if (!ISLDT(ssd.selector)) {
+#ifdef DEBUG
printf("Not an ldt\n");
+#endif
return EPERM;
}
@@ -508,18 +512,14 @@
sap = stackgap_alloc(&sg,
sizeof(struct i386_set_ldt_args));
- if ((error = copyout(&sa, sap, sizeof(sa))) != 0) {
- printf("Cannot copyout args\n");
+ if ((error = copyout(&sa, sap, sizeof(sa))) != 0)
return error;
- }
SCARG(&ua, op) = I386_SET_LDT;
SCARG(&ua, parms) = (char *) sap;
- if ((error = copyout(&bsd, sa.desc, sizeof(bsd))) != 0) {
- printf("Cannot copyout desc\n");
+ if ((error = copyout(&bsd, sa.desc, sizeof(bsd))) != 0)
return error;
- }
return sys_sysarch(p, &ua, retval);
}
Home |
Main Index |
Thread Index |
Old Index