From 5acd131e6c903a076066bab7edbb21762817a688 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 23 Nov 2020 16:21:30 -0800 Subject: [PATCH] fake_kern_error: add missing \n when writing to /dev/kmsg This wasn't really a problem as long as sof-kernel-log-check.sh was reading /var/log/kernel.log, which just changed in PR #529 Signed-off-by: Marc Herbert --- case-lib/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 07504204..074ea313 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -64,7 +64,7 @@ fake_kern_error() boot_secs=$(awk '{ print $1 }' < /proc/uptime) kern_log_prefix="$d $(hostname) kernel: [$boot_secs]" - printf '<0>%s >/dev/kmsg' "$k_msg" | sudo tee -a /dev/kmsg >/dev/null + printf '<0>%s >/dev/kmsg\n' "$k_msg" | sudo tee -a /dev/kmsg >/dev/null # From https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg # It is not possible to inject to /dev/kmesg with the facility