aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-02-23 02:09:08 (GMT)
committerRob Landley <rob@landley.net>2018-02-23 02:09:08 (GMT)
commit63b9816bf32a22b5a7e44457ec6c8935bb71cac3 (patch)
tree157535ebd8d5cf636143d53154dc7ae26c90ec97
parent66f12b756a5431fe364c6817ec64e4e373bdc55a (diff)
downloadandroid_external_toybox-63b9816bf32a22b5a7e44457ec6c8935bb71cac3.zip
android_external_toybox-63b9816bf32a22b5a7e44457ec6c8935bb71cac3.tar.gz
android_external_toybox-63b9816bf32a22b5a7e44457ec6c8935bb71cac3.tar.bz2
Bugfix, facility values are <<3 in the headers.
-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 b06699e..4756299 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));