Merge pull request #1517 from tlaurion/pass_debug_call_output_to_kmsg_one_line_at_a_time

BugFix: Pass debug call output to kmsg one line at a time
This commit is contained in:
tlaurion 2023-10-21 14:39:08 -04:00 committed by GitHub
commit e1d972be37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,9 @@ warn() {
DEBUG() {
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
echo "DEBUG: $*" | tee -a /tmp/debug.log /dev/kmsg > /dev/null;
echo "DEBUG: $*" | while read line; do
echo "$line" | tee -a /tmp/debug.log /dev/kmsg >/dev/null
done
fi
}