On Fri, Jun 06, Olaf Hering wrote:

> Hi,
> 
> ethtool -i ethX should return the driver name instead of a 'verbose'
> string. Other tools rely on the output.
> 2.5 might need a similar fix.
> 
> smirnow:~ # ethtool -i eth0
> driver: 3c59x
> version: LK1.1.16
> firmware-version: 
> bus-info: 00:0a.0
> smirnow:~ # ethtool -i eth1
> driver: Pegasus/Pegasus II USB Ethernet v0.4.30 (2003/04/01)
> version: v0.4.30 (2003/04/01)
> firmware-version: 
> bus-info: usb1:8

That one fits on top of the usb-2.4 bk tree:


--- linux-2.4.21-rc7.ethtool/drivers/usb/pegasus.c~     2003-06-06 18:44:19.000000000 
+0200
+++ linux-2.4.21-rc7.ethtool/drivers/usb/pegasus.c      2003-06-06 19:26:57.000000000 
+0200
@@ -900,7 +900,6 @@ static int pegasus_ethtool_ioctl(struct 
                        info.cmd = ETHTOOL_GDRVINFO;
                        strncpy(info.driver, driver_name,
                                sizeof (info.driver) - 1);
-                       strncpy(info.driver, DRIVER_DESC, ETHTOOL_BUSINFO_LEN);
                        strncpy(info.version, DRIVER_VERSION,
                                sizeof (info.version) - 1);
                        usb_make_path(pegasus->usb, info.bus_info,

-- 
USB is for mice, FireWire is for men!


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to