mirror of
https://github.com/linuxboot/heads.git
synced 2025-06-22 09:08:50 +00:00
Improve DEBUG and DO_WITH_DEBUG output handling to also keep output of kexec -l when BOARD is in DEBUG+TRACE mode (configuration settings menu + flash)
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
@ -23,8 +23,9 @@ warn() {
|
||||
}
|
||||
|
||||
DEBUG() {
|
||||
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
|
||||
echo "DEBUG: $*" | while read line; do
|
||||
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ]; then
|
||||
# fold -s -w 960 will wrap lines at 960 characters on the last space before the limit
|
||||
echo "DEBUG: $*" | fold -s -w 960 | while read line; do
|
||||
echo "$line" | tee -a /tmp/debug.log /dev/kmsg >/dev/null
|
||||
done
|
||||
fi
|
||||
|
Reference in New Issue
Block a user