Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Don't print "... not configured" message...
details: https://anonhg.NetBSD.org/src/rev/c18b5d9b27df
branches: trunk
changeset: 481849:c18b5d9b27df
user: tsubai <tsubai%NetBSD.org@localhost>
date: Mon Feb 07 20:30:05 2000 +0000
description:
Don't print "... not configured" message for non real devices
like escc-legacy.
diffstat:
sys/arch/macppc/dev/obio.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r e9db01cf7bae -r c18b5d9b27df sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c Mon Feb 07 20:19:13 2000 +0000
+++ b/sys/arch/macppc/dev/obio.c Mon Feb 07 20:30:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: obio.c,v 1.7 2000/01/23 10:01:44 tsubai Exp $ */
+/* $NetBSD: obio.c,v 1.8 2000/02/07 20:30:05 tsubai Exp $ */
/*-
* Copyright (C) 1998 Internet Research Institute, Inc.
@@ -153,12 +153,28 @@
}
}
+static char *skiplist[] = {
+ "interrupt-controller",
+ "gpio",
+ "escc-legacy",
+ "timer",
+ "i2c"
+ "power-mgt",
+};
+
+#define N_LIST (sizeof(skiplist) / sizeof(skiplist[0]))
+
int
obio_print(aux, obio)
void *aux;
const char *obio;
{
struct confargs *ca = aux;
+ int i;
+
+ for (i = 0; i < N_LIST; i++)
+ if (strcmp(ca->ca_name, skiplist[i]) == 0)
+ return QUIET;
if (obio)
printf("%s at %s", ca->ca_name, obio);
Home |
Main Index |
Thread Index |
Old Index