]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix: typo in awk script in _do_dlog_batch_kmsglog
authorDaniel Hast <hast.daniel@protonmail.com>
Fri, 31 Oct 2025 12:23:15 +0000 (08:23 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 31 Oct 2025 12:33:41 +0000 (08:33 -0400)
Fixes #1803.

Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
dracut-logger.sh

index 49765f9a26c6bcaa6611bc50c8187dd3141b5c12..1c6a7484df9f8c713925f99771937cf971920aef 100644 (file)
@@ -437,7 +437,7 @@ _do_dlog_batch_kmsglog() {
     if ((lvl <= kmsgloglvl)); then
         kmsg_lvlc="$(_dlvl2syslvl "$lvl")" || return 1
         awk -v lvlc="${kmsg_lvlc}" -v prefix="dracut[$$] " \
-            '{ if (NR==1) printf "<%s>" lvlc; print prefix $0 }' > /dev/kmsg
+            '{ if (NR==1) printf "<%s>", lvlc; print prefix $0 }' > /dev/kmsg
     else
         cat > /dev/null
     fi