Subject: "name" versus "banner-name" (almost trivia)
To: NetBSD port-sparc64 mailing list <port-sparc64@netbsd.org>
From: Julian Coleman <jdc@coris.org.uk>
List: port-sparc64
Date: 12/30/2007 10:50:31
Hi,
I noticed that my V120 printed out:
mainbus0 (root): SUNW,UltraAX-i2: hostid 83683549
when booting. Looking at the OF tree, I see that this is the "name"
property, but there is also a "banner-name" property. With the appended
patch, it prints:
mainbus0 (root): Sun Fire V120 (UltraSPARC-IIe 648MHz): hostid 83683549
Also, `sysctl hw.model` contains:
Sun Fire V120 (UltraSPARC-IIe 648MHz) (SUNW,UltraSPARC-IIe @ 648 MHz)
I wonder if that should contain the "name" property as well as the
"banner-name".
- - 8< - - - - - - - - - - - - - Cut here - - - - - - - - - - - - - >8 - -
--- autoconf.c.dist 2007-12-08 18:53:17.000000000 +0000
+++ autoconf.c 2007-12-30 10:29:13.000000000 +0000
@@ -534,7 +534,10 @@
NULL
};
- OF_getprop(findroot(), "name", machine_model, sizeof machine_model);
+ if (OF_getprop(findroot(), "banner-name", machine_model,
+ sizeof machine_model) < 0)
+ OF_getprop(findroot(), "name", machine_model,
+ sizeof machine_model);
prom_getidprom();
printf(": %s: hostid %lx\n", machine_model, hostid);
- - 8< - - - - - - - - - - - - - Cut here - - - - - - - - - - - - - >8 - -
Thanks,
J
--
My other computer also runs NetBSD / Sailing at Newbiggin
http://www.netbsd.org/ / http://www.newbigginsailingclub.org/