X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevstart.c;h=6af5860e27e99cd1f3e641a396b148cf3f80d82c;hb=2e23125e112c0a56e1ccee193c2cfe0e26af1bad;hp=6ea18272ea013a0788571dfa546e51c89ce7bc71;hpb=456cb387567da8a2beadf003dcbd874022dbc873;p=elogind.git diff --git a/udevstart.c b/udevstart.c index 6ea18272e..6af5860e2 100644 --- a/udevstart.c +++ b/udevstart.c @@ -68,7 +68,7 @@ static int device_list_insert(const char *path, struct list_head *device_list) struct device *new_device; const char *devpath = &path[strlen(sysfs_path)]; - dbg("insert: '%s'\n", devpath); + dbg("insert: '%s'", devpath); list_for_each_entry(loop_device, device_list, node) { if (strcmp(loop_device->path, devpath) > 0) { @@ -120,7 +120,7 @@ static int add_device(const char *devpath) if (dev == NULL) return -1; - udev = udev_device_init(); + udev = udev_device_init(NULL); if (udev == NULL) return -1;