mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
fix typo in log message priority handling
This commit is contained in:
parent
58b533f417
commit
1d67ec16c4
@ -26,7 +26,7 @@ udev_log_null(struct udev *udev, const char *format, ...) {}
|
||||
#define udev_log_cond(udev, prio, arg...) \
|
||||
do { \
|
||||
if (udev_get_log_priority(udev) >= prio) \
|
||||
udev_log(udev, LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## arg); \
|
||||
udev_log(udev, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \
|
||||
} while (0)
|
||||
|
||||
#ifdef ENABLE_LOGGING
|
||||
|
@ -35,8 +35,7 @@ static void log_fn(struct udev *udev, int priority,
|
||||
fprintf(stderr, "%s: ", fn);
|
||||
vfprintf(stderr, format, args);
|
||||
} else {
|
||||
if (priority <= LOG_ERR)
|
||||
vfprintf(stderr, format, args);
|
||||
vfprintf(stderr, format, args);
|
||||
vsyslog(priority, format, args);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user