summaryrefslogtreecommitdiff
path: root/src/udev/libudev-private.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-04-04 13:14:29 +0200
committerKay Sievers <kay.sievers@vrfy.org>2012-04-04 13:14:29 +0200
commit0c9507fe2469c2da2ffbc9c8a698cc888cef40fc (patch)
tree38ab17c742567f28f04986f33257bd7027a6c2e7 /src/udev/libudev-private.h
parent8ece4cab426cce6759ff240504dc876502f4c483 (diff)
udev: enable logging
Diffstat (limited to 'src/udev/libudev-private.h')
-rw-r--r--src/udev/libudev-private.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/udev/libudev-private.h b/src/udev/libudev-private.h
index 4bbd8422fb..001c578540 100644
--- a/src/udev/libudev-private.h
+++ b/src/udev/libudev-private.h
@@ -31,19 +31,13 @@ udev_log_null(struct udev *udev, const char *format, ...) {}
udev_log(udev, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \
} while (0)
-#ifdef ENABLE_LOGGING
-# ifdef ENABLE_DEBUG
-# define dbg(udev, arg...) udev_log_cond(udev, LOG_DEBUG, ## arg)
-# else
-# define dbg(udev, arg...) udev_log_null(udev, ## arg)
-# endif
-# define info(udev, arg...) udev_log_cond(udev, LOG_INFO, ## arg)
-# define err(udev, arg...) udev_log_cond(udev, LOG_ERR, ## arg)
+#ifdef ENABLE_DEBUG
+# define dbg(udev, arg...) udev_log_cond(udev, LOG_DEBUG, ## arg)
#else
# define dbg(udev, arg...) udev_log_null(udev, ## arg)
-# define info(udev, arg...) udev_log_null(udev, ## arg)
-# define err(udev, arg...) udev_log_null(udev, ## arg)
#endif
+#define info(udev, arg...) udev_log_cond(udev, LOG_INFO, ## arg)
+#define err(udev, arg...) udev_log_cond(udev, LOG_ERR, ## arg)
#define UDEV_EXPORT __attribute__ ((visibility("default")))