Skip to content

Commit

Permalink
Merge pull request #1517 from tlaurion/pass_debug_call_output_to_kmsg…
Browse files Browse the repository at this point in the history
…_one_line_at_a_time

BugFix: Pass debug call output to kmsg one line at a time
  • Loading branch information
tlaurion committed Oct 21, 2023
2 parents 9e55e08 + 139f771 commit e1d972b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion initrd/etc/ash_functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e1d972b

Please sign in to comment.