diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-13 19:41:54 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-13 19:41:54 +0000 |
commit | 1fb20fb5fd97466f8cc2ce4cfd54d430724b619a (patch) | |
tree | 8a9835b46e8c5a14ff8b27fa555b11ee2ca6022a /sys/arch | |
parent | e9c1d5a2ce4912b307fa0b849b62c5763f5cc176 (diff) |
print 'banner-name' instead of 'name' for mainbus (when available)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 41a44173bec..9f547db8573 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.27 2002/10/12 01:09:43 krw Exp $ */ +/* $OpenBSD: autoconf.c,v 1.28 2002/11/13 19:41:53 jason Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -106,7 +106,7 @@ extern int kgdb_debug_panic; #endif static int rootnode; -char platform_type[32]; +char platform_type[64]; static char *str2hex(char *, int *); static int mbprint(void *, const char *); @@ -1028,7 +1028,10 @@ extern struct sparc_bus_space_tag mainbus_space_tag; NULL }; - OF_getprop(findroot(), "name", platform_type, sizeof(platform_type)); + if (OF_getprop(findroot(), "banner-name", platform_type, + sizeof(platform_type)) <= 0) + OF_getprop(findroot(), "name", platform_type, + sizeof(platform_type)); printf(": %s\n", platform_type); |