mirror of
https://github.com/systemd/systemd.git
synced 2025-01-20 18:04:03 +03:00
sd-device: use LOG_PRI() in log_device_full()
We use LOG_PRI() in all log_*() functions, so let's do that here too for consistency. Effectively this doesn't change anything since we only use LOG_{INFO,DEBUG,...} as the argument.
This commit is contained in:
parent
d6d4961b01
commit
46d4149d0f
@ -37,7 +37,7 @@
|
||||
sd_device *_d = (device); \
|
||||
int _level = (level), _error = (error); \
|
||||
\
|
||||
if (_d && _unlikely_(log_get_max_level() >= _level)) \
|
||||
if (_d && _unlikely_(log_get_max_level() >= LOG_PRI(_level))) \
|
||||
(void) sd_device_get_sysname(_d, &_sysname); \
|
||||
log_object_internal(_level, _error, PROJECT_FILE, __LINE__, __func__, \
|
||||
_sysname ? "DEVICE=" : NULL, _sysname, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user