not all storage devices have serial based udi's

SVN revision: 30361
This commit is contained in:
rephorm 2007-06-17 04:00:53 +00:00 committed by rephorm
parent ab8a38a505
commit 97ac0640ae
1 changed files with 2 additions and 2 deletions

View File

@ -276,8 +276,8 @@ _e_dbus_cb_dev_all(void *user_data, void *reply_data, DBusError *error)
while ((device = ecore_list_next(ret->strings)))
{
// printf("DB INIT DEV+: %s\n", device);
if (!strncmp(device, "/org/freedesktop/Hal/devices/storage_serial",
strlen("/org/freedesktop/Hal/devices/storage_serial")))
if (!strncmp(device, "/org/freedesktop/Hal/devices/storage",
strlen("/org/freedesktop/Hal/devices/storage")))
{
char *udi;
int ret;