Message ID | 20250117154807.2465736-1-bastien.jauny@smile.fr |
---|---|
State | Accepted, archived |
Commit | 48e4b8c06e503868404b99bf45a46a52794baa5a |
Headers | show |
Series | classes/logging: Added the bbverbnote command to the logging set | expand |
diff --git a/meta/classes-global/logging.bbclass b/meta/classes-global/logging.bbclass index ce03abfe42..136f1e1733 100644 --- a/meta/classes-global/logging.bbclass +++ b/meta/classes-global/logging.bbclass @@ -32,6 +32,16 @@ bbnote() { fi } +# Notify the user of a noteworthy condition. +# Output: logs console +bbverbnote() { + if [ -p ${LOGFIFO} ]; then + printf "%b\0" "bbverbnote $*" > ${LOGFIFO} + else + echo "NOTE: $*" + fi +} + # Print a warning to the log. Warnings are non-fatal, and do not # indicate a build failure. # Output: logs console