From: Dusty Mabe Date: Wed, 14 Apr 2021 20:23:29 +0000 (-0400) Subject: fix(dracut-logger.sh): double dash trigger unknown logger warnings during run X-Git-Tag: 054~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fbccde50456f513d388cdfd858018cd889890dc;p=thirdparty%2Fdracut.git 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 ``` --- diff --git a/dracut-logger.sh b/dracut-logger.sh index c36525d06..07389285e 100755 --- a/dracut-logger.sh +++ b/dracut-logger.sh @@ -239,7 +239,7 @@ _lvl2char() { # @retval 0 if @a lvl is correct. # @result Echoes logger priority. _lvl2syspri() { - printf "%s" -- "$syslogfacility." + printf -- "%s" "$syslogfacility." case "$1" in 1) echo crit ;; 2) echo error ;;