mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
fix compile error with --disable-logging
This commit is contained in:
parent
714131f1f2
commit
d6b148cde2
@ -30,14 +30,14 @@ log_null(struct udev *udev, const char *format, ...) {}
|
|||||||
# ifdef USE_DEBUG
|
# ifdef USE_DEBUG
|
||||||
# define dbg(udev, arg...) udev_log(udev, LOG_DEBUG, __FILE__, __LINE__, __FUNCTION__, ## arg)
|
# define dbg(udev, arg...) udev_log(udev, LOG_DEBUG, __FILE__, __LINE__, __FUNCTION__, ## arg)
|
||||||
# else
|
# else
|
||||||
# define dbg log_null
|
# define dbg(udev, arg...) log_null(udev, ## arg)
|
||||||
# endif
|
# endif
|
||||||
# define info(udev, arg...) udev_log(udev, LOG_INFO, __FILE__, __LINE__, __FUNCTION__, ## arg)
|
# 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)
|
# define err(udev, arg...) udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg)
|
||||||
#else
|
#else
|
||||||
# define dbg log_null
|
# define dbg(udev, arg...) log_null(udev, ## arg)
|
||||||
# define info log_null
|
# define info(udev, arg...) log_null(udev, ## arg)
|
||||||
# define err log_null
|
# define err(udev, arg...) log_null(udev, ## arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* libudev */
|
/* libudev */
|
||||||
|
Loading…
Reference in New Issue
Block a user