[PATCH] Fix ccwgroup.lcs.portnumber property.

Cornelia Huck cohuck at de.ibm.com
Fri Aug 26 02:24:56 PDT 2005


The following fix is needed to get a correct ccwgroup.lcs.portnumber
property, since the underlying portno sysfs attribute is decimal, not
binary.

 physdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: hald/linux2/physdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/physdev.c,v
retrieving revision 1.19
diff -u -r1.19 physdev.c
--- hald/linux2/physdev.c	9 Aug 2005 15:14:42 -0000	1.19
+++ hald/linux2/physdev.c	26 Aug 2005 09:22:29 -0000
@@ -1062,7 +1062,7 @@
 ccwgroup_add_lcs_properties (HalDevice *d, const gchar *sysfs_path)
 {
 	hal_util_set_int_from_file (d, "ccwgroup.lcs.portnumber", sysfs_path,
-				    "portno", 2);
+				    "portno", 10);
 	hal_util_set_string_from_file (d, "ccwgroup.lcs.type", sysfs_path,
 				       "type");
 	hal_util_set_int_from_file (d, "ccwgroup.lcs.lancmd_timeout",


More information about the hal mailing list