mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 02:39:59 +00:00
ash_functions: make DEBUG call pass multiline messages one at a time to /tmp/debug.log and kmsg
This commit is contained in:
parent
9e55e08ac0
commit
139f77113c
@ -24,7 +24,9 @@ warn() {
|
|||||||
|
|
||||||
DEBUG() {
|
DEBUG() {
|
||||||
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user