]> err.no Git - systemd/commitdiff
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 076fa00bfd119d50dc33a94366c27c99cb3fa77d..e1c9ed7471611a30699b8f1b567372238ee2e136 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;