summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-04-22 11:10:08 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-04-22 11:10:08 +0000
commit970dee1f5f42b1241520bd756ff900a95b2c633a (patch)
treeac93ff118e466c687e8a5d35e27cc1e1e30ed180 /sys
parentb53ab29b54d02e0dc22d645fa48fbded891255c0 (diff)
Knock out a few more well-known nodes that we don't intend to attach a
driver to as well as nodes that start with a double underscore. ok patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm64/dev/mainbus.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/mainbus.c b/sys/arch/arm64/dev/mainbus.c
index 517a51813f0..85a9ae468a7 100644
--- a/sys/arch/arm64/dev/mainbus.c
+++ b/sys/arch/arm64/dev/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.15 2019/10/23 09:27:43 patrick Exp $ */
+/* $OpenBSD: mainbus.c,v 1.16 2020/04/22 11:10:07 kettenis Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
@@ -178,7 +178,10 @@ mainbus_print(void *aux, const char *pnp)
if (strcmp(buf, "aliases") == 0 ||
strcmp(buf, "chosen") == 0 ||
strcmp(buf, "cpus") == 0 ||
- strcmp(buf, "memory") == 0)
+ strcmp(buf, "memory") == 0 ||
+ strcmp(buf, "reserved-memory") == 0 ||
+ strcmp(buf, "thermal-zones") == 0 ||
+ strncmp(buf, "__", 2) == 0)
return (QUIET);
printf("\"%s\"", buf);
} else