hal/hald/linux2 osspec.c,1.32,1.33
Danny Kukawka
dkukawka at freedesktop.org
Wed Nov 2 08:14:18 PST 2005
- Previous message: hal/hald/linux2 blockdev.c, 1.26, 1.27 blockdev.h, 1.4,
1.5 classdev.c, 1.34, 1.35 classdev.h, 1.5, 1.6 coldplug.c,
1.19, 1.20 coldplug.h, 1.2, 1.3 hotplug.c, 1.18,
1.19 hotplug.h, 1.9, 1.10 hotplug_helper.h, 1.2, 1.3 ids.c,
1.8, 1.9 ids.h, 1.3, 1.4 osspec.c, 1.31, 1.32 osspec_linux.h,
1.4, 1.5 pcmcia_cs.h, 1.3, 1.4 pcmcia_utils.c, 1.3,
1.4 pcmcia_utils.h, 1.3, 1.4 physdev.c, 1.22, 1.23 physdev.h,
1.3, 1.4
- Next message: hal ChangeLog,1.669,1.670
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv24725/hald/linux2
Modified Files:
osspec.c
Log Message:
2005-11-02 Danny Kukawka <danny.kukawka at web.de>
* hald/linux2/osspec.c: (computer_probing_pcbios_helper_done): changed
compute system.product to prevent adding "Not Specified" from
smbios.system.version to the property.
* hald/util.c: fixed code documentation
Index: osspec.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/osspec.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- osspec.c 2 Nov 2005 15:38:14 -0000 1.32
+++ osspec.c 2 Nov 2005 16:14:16 -0000 1.33
@@ -427,9 +427,14 @@
(system_version = hal_device_property_get_string (d, "smbios.system.version")) != NULL) {
char buf[128];
- g_snprintf (buf, sizeof (buf), "%s %s", system_product, system_version);
hal_device_property_set_string (d, "system.vendor", system_manufacturer);
- hal_device_property_set_string (d, "system.product", buf);
+
+ if (strcmp(system_version, "Not Specified" ) != 0 ) {
+ g_snprintf (buf, sizeof (buf), "%s %s", system_product, system_version);
+ hal_device_property_set_string (d, "system.product", buf);
+ } else {
+ hal_device_property_set_string (d, "system.product", system_product);
+ }
}
- Previous message: hal/hald/linux2 blockdev.c, 1.26, 1.27 blockdev.h, 1.4,
1.5 classdev.c, 1.34, 1.35 classdev.h, 1.5, 1.6 coldplug.c,
1.19, 1.20 coldplug.h, 1.2, 1.3 hotplug.c, 1.18,
1.19 hotplug.h, 1.9, 1.10 hotplug_helper.h, 1.2, 1.3 ids.c,
1.8, 1.9 ids.h, 1.3, 1.4 osspec.c, 1.31, 1.32 osspec_linux.h,
1.4, 1.5 pcmcia_cs.h, 1.3, 1.4 pcmcia_utils.c, 1.3,
1.4 pcmcia_utils.h, 1.3, 1.4 physdev.c, 1.22, 1.23 physdev.h,
1.3, 1.4
- Next message: hal ChangeLog,1.669,1.670
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list