diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-04-04 13:14:29 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-04-04 13:14:29 +0200 |
commit | 0c9507fe2469c2da2ffbc9c8a698cc888cef40fc (patch) | |
tree | 38ab17c742567f28f04986f33257bd7027a6c2e7 | |
parent | 8ece4cab426cce6759ff240504dc876502f4c483 (diff) |
udev: enable logging
-rw-r--r-- | src/udev/libudev-private.h | 14 |
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"))) |