summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-02 06:20:33 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-02 06:20:33 +0200
commitd6b148cde2a8ca6dc32af2e1d95824ac3be926db (patch)
tree4250fbeab40612c297581ac0295d305f5c441831
parent714131f1f2115bb4279d079e4b56a67bedcf2e9a (diff)
fix compile error with --disable-logging
-rw-r--r--udev/lib/libudev-private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
index 7747b344fe..a9ad2f86a9 100644
--- a/udev/lib/libudev-private.h
+++ b/udev/lib/libudev-private.h
@@ -30,14 +30,14 @@ log_null(struct udev *udev, const char *format, ...) {}
# ifdef USE_DEBUG
# define dbg(udev, arg...) udev_log(udev, LOG_DEBUG, __FILE__, __LINE__, __FUNCTION__, ## arg)
# else
-# define dbg log_null
+# define dbg(udev, arg...) log_null(udev, ## arg)
# endif
# define info(udev, arg...) udev_log(udev, LOG_INFO, __FILE__, __LINE__, __FUNCTION__, ## arg)
# define err(udev, arg...) udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg)
#else
-# define dbg log_null
-# define info log_null
-# define err log_null
+# define dbg(udev, arg...) log_null(udev, ## arg)
+# define info(udev, arg...) log_null(udev, ## arg)
+# define err(udev, arg...) log_null(udev, ## arg)
#endif
/* libudev */