log: use _likely() when verifying log level

This commit is contained in:
Lennart Poettering 2010-04-24 04:23:15 +02:00
parent e6be8af492
commit ab8cabad26

2
log.c
View File

@ -278,7 +278,7 @@ void log_meta(
int saved_errno;
if (LOG_PRI(level) > log_max_level)
if (_likely(LOG_PRI(level) > log_max_level))
return;
saved_errno = errno;