summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-31 21:22:44 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-31 21:22:44 +0200
commit7d76f312889d54dcfe6fdde6eb055e890e7a615b (patch)
tree7ef1439ab07d28ca0a530d5643eec5bf0de33a40 /src/util.c
parent29db583471f019ed9939a90966b3e194a9560e7e (diff)
log: fix shifting of facilities
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 5a5cdceab4..2a5f3074b6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -4211,7 +4211,7 @@ static const char *const sigchld_code_table[] = {
DEFINE_STRING_TABLE_LOOKUP(sigchld_code, int);
-static const char *const log_facility_table[LOG_NFACILITIES] = {
+static const char *const log_facility_unshifted_table[LOG_NFACILITIES] = {
[LOG_FAC(LOG_KERN)] = "kern",
[LOG_FAC(LOG_USER)] = "user",
[LOG_FAC(LOG_MAIL)] = "mail",
@@ -4234,7 +4234,7 @@ static const char *const log_facility_table[LOG_NFACILITIES] = {
[LOG_FAC(LOG_LOCAL7)] = "local7"
};
-DEFINE_STRING_TABLE_LOOKUP(log_facility, int);
+DEFINE_STRING_TABLE_LOOKUP(log_facility_unshifted, int);
static const char *const log_level_table[] = {
[LOG_EMERG] = "emerg",