Make logging work with newlines, add _error func

This commit is contained in:
JeremyStar™ 2024-12-22 19:11:36 +01:00
parent 10f612396a
commit 5f6ce75201
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -247,10 +247,13 @@ export "KBUILD_BUILD_TIMESTAMP=$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EP
# Debugging
_msg() {
echo ":: ${*}"
echo -e ":: ${*}"
}
_warn() {
echo ":: WARNING ${*//\n/\n }"
echo -e ":: WARNING: ${*//\\n/\\n }"
}
_error() {
echo -e ":: ERROR: ${*//\\n/\\n }"
}
_debug_msg() {
[ -n "${_debug_script}" ] && echo ":: debug: ${*}"