]> err.no Git - systemd/commitdiff
libudev: print log_fn address instead of ctx when setting logging function
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 8 Nov 2011 20:59:27 +0000 (21:59 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 8 Nov 2011 20:59:27 +0000 (21:59 +0100)
Patch from Jiri Pirko <jpirko@redhat.com> for libabc.

libudev/libudev.c

index 165c36984e9cdabb9beadaf2eeb4672ce38c7478..3b3a8e9af537a129720e13c075e986c22f563b63 100644 (file)
@@ -333,7 +333,7 @@ UDEV_EXPORT void udev_set_log_fn(struct udev *udev,
                                    const char *format, va_list args))
 {
        udev->log_fn = log_fn;
-       info(udev, "custom logging function %p registered\n", udev);
+       info(udev, "custom logging function %p registered\n", log_fn);
 }
 
 /**