Skip to content

Commit

Permalink
ash_functions: make DEBUG call pass multiline messages one at a time …
Browse files Browse the repository at this point in the history
…to /tmp/debug.log and kmsg
  • Loading branch information
tlaurion committed Oct 21, 2023
1 parent 9e55e08 commit 139f771
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 139f771

Please sign in to comment.