chiark / gitweb /
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 165c369..3b3a8e9 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);
 }
 
 /**