aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/posix/logger.c b/toys/posix/logger.c
index b06699eb..47562999 100644
--- a/toys/posix/logger.c
+++ b/toys/posix/logger.c
@@ -71,6 +71,7 @@ void logger_main(void)
if (facility>=0) facility += 16;
}
if (facility<0) error_exit("bad facility: %s", TT.priority);
+ facility *= 8;
}
priority = arrayfind(s1, priorities, ARRAY_LEN(priorities));