device: be more verbose of udev confuses us

This commit is contained in:
Lennart Poettering 2010-08-17 03:31:31 +02:00
parent c0b346969d
commit 8630d37023

View file

@ -190,7 +190,8 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p
/* If this is a different unit, then let's not merge things */
if (u && DEVICE(u)->sysfs && !path_equal(DEVICE(u)->sysfs, sysfs)) {
log_error("Hmm, something's broken. Asked to create two devices with same name but different sysfs paths.");
log_error("Hmm, something's broken. Asked to create two devices with same name but different sysfs paths. (%s vs %s)",
DEVICE(u)->sysfs, sysfs);
return -EEXIST;
}