chiark / gitweb /
log: use _likely() when verifying log level
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 02:23:15 +0000 (04:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Apr 2010 02:23:15 +0000 (04:23 +0200)
log.c

diff --git a/log.c b/log.c
index 076fa00..e1c9ed7 100644 (file)
--- 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;