if (value[0]=='\0') {
const char *val;
- val = udev_device_get_attr_value(dev, key_name);
+ val = udev_device_get_sysattr_value(dev, key_name);
if (val != NULL)
util_strlcpy(value, val, sizeof(value));
}
char value[UTIL_NAME_SIZE];
size_t len;
- val = udev_device_get_attr_value(event->dev_parent, key_name);
+ val = udev_device_get_sysattr_value(event->dev_parent, key_name);
if (val == NULL)
- val = udev_device_get_attr_value(dev, key_name);
+ val = udev_device_get_sysattr_value(dev, key_name);
if (val == NULL)
goto try_parent;
util_strlcpy(value, val, sizeof(value));