Subject: kern/8206: vr driver's attach message describes card as an "Ethernet Ethernet"
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 08/14/1999 01:11:17
>Number:         8206
>Category:       kern
>Synopsis:       vr driver's attach message describes card as an "Ethernet Ethernet"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 14 00:05:00 1999
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of August 13, 1999
>Environment:
	
System: NetBSD yerfable.metonymy.com 1.4J NetBSD 1.4J (YERFABLE) #26: Sat Aug 14 01:29:11 CDT 1999 khym@yerfable.metonymy.com:/usr/src.local/sys/arch/alpha/compile/YERFABLE alpha


>Description:
	The vr driver's attach message repeats the word "Ethernet" in
the card's description:

vr0 at pci0 dev 5 function 0: VIA VT3043 (Rhine) 10/100 Ethernet Ethernet

The vr_devs table includes "Ethernet" in the device name, but
vr_attach() appends another "Ethernet" when printing the attach
message.

>How-To-Repeat:
>Fix:
--- /usr/src/sys/dev/pci/if_vr.c	Wed Aug  4 06:17:29 1999
+++ if_vr.c	Sat Aug 14 01:28:46 1999
@@ -164,9 +164,9 @@
 	const char		*vr_name;
 } vr_devs[] = {
 	{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT3043,
-		"VIA VT3043 (Rhine) 10/100 Ethernet" },
+		"VIA VT3043 (Rhine) 10/100" },
 	{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT86C100A,
-		"VIA VT86C100A (Rhine-II) 10/100 Ethernet" },
+		"VIA VT86C100A (Rhine-II) 10/100" },
 	{ 0, 0, NULL }
 };
 
>Audit-Trail:
>Unformatted: