Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch allow MPVERBOSE to be set to a value that sets the ...
details: https://anonhg.NetBSD.org/src/rev/d20edf0558b9
branches: trunk
changeset: 339711:d20edf0558b9
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Aug 05 07:01:10 2015 +0000
description:
allow MPVERBOSE to be set to a value that sets the "mp_verbose" variable.
diffstat:
sys/arch/amd64/amd64/mainbus.c | 14 +++++++++-----
sys/arch/i386/i386/mainbus.c | 14 +++++++++-----
2 files changed, 18 insertions(+), 10 deletions(-)
diffs (74 lines):
diff -r 9efdff6fb7cf -r d20edf0558b9 sys/arch/amd64/amd64/mainbus.c
--- a/sys/arch/amd64/amd64/mainbus.c Wed Aug 05 07:00:34 2015 +0000
+++ b/sys/arch/amd64/amd64/mainbus.c Wed Aug 05 07:01:10 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.35 2015/04/27 07:03:57 knakahara Exp $ */
+/* $NetBSD: mainbus.c,v 1.36 2015/08/05 07:01:10 mrg Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.35 2015/04/27 07:03:57 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36 2015/08/05 07:01:10 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -126,11 +126,15 @@
int mp_isa_bus = -1;
int mp_eisa_bus = -1;
-#ifdef MPVERBOSE
+# ifdef MPVERBOSE
+# if MPVERBOSE > 0
+int mp_verbose = MPVERBOSE;
+# else
int mp_verbose = 1;
-#else
+# endif
+# else
int mp_verbose = 0;
-#endif
+# endif
#endif
diff -r 9efdff6fb7cf -r d20edf0558b9 sys/arch/i386/i386/mainbus.c
--- a/sys/arch/i386/i386/mainbus.c Wed Aug 05 07:00:34 2015 +0000
+++ b/sys/arch/i386/i386/mainbus.c Wed Aug 05 07:01:10 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.100 2015/04/27 08:30:11 knakahara Exp $ */
+/* $NetBSD: mainbus.c,v 1.101 2015/08/05 07:01:11 mrg Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.100 2015/04/27 08:30:11 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.101 2015/08/05 07:01:11 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -161,11 +161,15 @@
int mp_isa_bus = -1; /* XXX */
int mp_eisa_bus = -1; /* XXX */
-#ifdef MPVERBOSE
+# ifdef MPVERBOSE
+# if MPVERBOSE > 0
+int mp_verbose = MPVERBOSE;
+# else
int mp_verbose = 1;
-#else
+# endif
+# else
int mp_verbose = 0;
-#endif
+# endif
#endif
void
Home |
Main Index |
Thread Index |
Old Index