Skip to content

Commit 4fbccde

Browse files
dustymabeharaldh
authored andcommitted
fix(dracut-logger.sh): double dash trigger unknown logger warnings during run
There are a bunch of `logger: unknown facility name: --user` errors during a run. This is because logger is getting passed something like: ``` logger -p --user.info ``` Where it should be something like: ``` logger -p user.info ```
1 parent 651fe01 commit 4fbccde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dracut-logger.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ _lvl2char() {
239239
# @retval 0 if @a lvl is correct.
240240
# @result Echoes logger priority.
241241
_lvl2syspri() {
242-
printf "%s" -- "$syslogfacility."
242+
printf -- "%s" "$syslogfacility."
243243
case "$1" in
244244
1) echo crit ;;
245245
2) echo error ;;

0 commit comments

Comments
 (0)