hal/hald/linux usbif_bus_device.c,1.9,1.9.2.1

David Zeuthen david at freedesktop.org
Fri Jan 21 17:35:29 PST 2005


Update of /cvs/hal/hal/hald/linux
In directory gabe:/tmp/cvs-serv14548/hald/linux

Modified Files:
      Tag: hal-0_4-stable-branch
	usbif_bus_device.c 
Log Message:
2005-01-21  David Zeuthen  <davidz at redhat.com>

	* hald/linux/usb_bus_device.c (usb_device_pre_process): Interface
	class is in hexadecimal, not decimal. Reported by Paul Ionescu
	<i_p_a_u_l at yahoo.com>.



Index: usbif_bus_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/Attic/usbif_bus_device.c,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -d -r1.9 -r1.9.2.1
--- usbif_bus_device.c	9 Aug 2004 18:33:29 -0000	1.9
+++ usbif_bus_device.c	22 Jan 2005 01:35:27 -0000	1.9.2.1
@@ -222,13 +222,13 @@
 
 		if (strcmp (attr_name, "bInterfaceClass") == 0)
 			hal_device_property_set_int (d, "usb.interface.class",
-					     parse_dec (cur->value));
+					     parse_hex (cur->value));
 		else if (strcmp (attr_name, "bInterfaceSubClass") == 0)
 			hal_device_property_set_int (d, "usb.interface.subclass",
-					     parse_dec (cur->value));
+					     parse_hex (cur->value));
 		else if (strcmp (attr_name, "bInterfaceProtocol") == 0)
 			hal_device_property_set_int (d, "usb.interface.protocol",
-					     parse_dec (cur->value));
+					     parse_hex (cur->value));
 		else if (strcmp (attr_name, "bInterfaceNumber") == 0)
 			hal_device_property_set_int (d, "usb.interface.number",
 					     parse_dec (cur->value));




More information about the hal-commit mailing list