summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 04:23:15 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 04:23:15 +0200
commitab8cabad2643f392cf9fd3bf97c665c4d159692f (patch)
treeeb392445578bcf0a7902b4a655c130fe02dfcb13
parente6be8af492e8db1cd5e23595554b6c642f1b8138 (diff)
log: use _likely() when verifying log level
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 076fa00bfd..e1c9ed7471 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;