Skip to content

Commit e1d972b

Browse files
authored
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
2 parents 9e55e08 + 139f771 commit e1d972b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

initrd/etc/ash_functions

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ warn() {
2424

2525
DEBUG() {
2626
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
27-
echo "DEBUG: $*" | tee -a /tmp/debug.log /dev/kmsg > /dev/null;
27+
echo "DEBUG: $*" | while read line; do
28+
echo "$line" | tee -a /tmp/debug.log /dev/kmsg >/dev/null
29+
done
2830
fi
2931
}
3032

0 commit comments

Comments
 (0)