mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +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...) \
|
#define udev_log_cond(udev, prio, arg...) \
|
||||||
do { \
|
do { \
|
||||||
if (udev_get_log_priority(udev) >= prio) \
|
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)
|
} while (0)
|
||||||
|
|
||||||
#ifdef ENABLE_LOGGING
|
#ifdef ENABLE_LOGGING
|
||||||
|
@ -35,8 +35,7 @@ static void log_fn(struct udev *udev, int priority,
|
|||||||
fprintf(stderr, "%s: ", fn);
|
fprintf(stderr, "%s: ", fn);
|
||||||
vfprintf(stderr, format, args);
|
vfprintf(stderr, format, args);
|
||||||
} else {
|
} else {
|
||||||
if (priority <= LOG_ERR)
|
vfprintf(stderr, format, args);
|
||||||
vfprintf(stderr, format, args);
|
|
||||||
vsyslog(priority, format, args);
|
vsyslog(priority, format, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user