[PATCH] export ieee1394.guid as string

Jon Lech Johansen jon at nanocrew.net
Mon Aug 23 11:41:27 PDT 2004


The ieee1394 node GUID is 64-bit. Attached is patch to export as string
instead of int.

-- 
Jon Lech Johansen
jon at member.fsf.org
nanocrew.net/blog/

Stat sua cuique dies, breve et inreparabile tempus
omnibus est vitae; sed famam extendere factis,
hoc virtutis opus.
-------------- next part --------------
--- hald/linux/ieee1394_node_class_device.c.orig	2004-08-23 14:16:03.693589328 +0200
+++ hald/linux/ieee1394_node_class_device.c	2004-08-23 14:17:47.945740592 +0200
@@ -92,9 +92,7 @@
 						     "ieee1394.capabilities",
 						     tmp);
 		} else if (strcmp (attr_name, "guid") == 0) {
-			tmp = parse_hex (cur->value);
-
-			hal_device_property_set_int (d, "ieee1394.guid", tmp);
+			hal_device_property_set_string (d, "ieee1394.guid", cur->value);
 		} else if (strcmp (attr_name, "nodeid") == 0) {
 			tmp = parse_hex (cur->value);
 
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list