- action = udev_device_get_action(udev_device);
- if (action == NULL)
- return -EINVAL;
- bufpos = snprintf(buf, sizeof(buf), "%s@%s", action, udev_device_get_devpath(udev_device));
- bufpos++;
- udev_list_entry_foreach(list_entry, udev_device_get_properties_list_entry(udev_device)) {
- bufpos += util_strlcpy(&buf[bufpos],
- udev_list_entry_get_name(list_entry),
- sizeof(buf) - bufpos);
- bufpos++;
- }