From ab8cabad2643f392cf9fd3bf97c665c4d159692f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 24 Apr 2010 04:23:15 +0200 Subject: [PATCH] log: use _likely() when verifying log level --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 076fa00b..e1c9ed74 100644 --- a/log.c +++ b/log.c @@ -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; -- 2.39.5