mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
lsb: fix lsb_log_msg() implementation
LSB lsb_log_message calls a begin() function that should be implemented in /etc/init.d/functions. The aforementioned script does not implement the begin() function, as such there is a small issue related to logging. This fix implements a local version of the function, while cleaning up the troublesome previous implementation. Fix [YOCTO #5795] (From OE-Core rev: 365ab9118b6c68aedb2e79129202b385329a8abb) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
61b088abb8
commit
ebfd075447
@@ -30,10 +30,15 @@ log_warning_msg () {
|
|||||||
/etc/core-lsb/lsb_log_message warning "$@"
|
/etc/core-lsb/lsb_log_message warning "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# int log_begin_message (char *message)
|
||||||
log_begin_msg () {
|
log_begin_msg () {
|
||||||
/etc/core-lsb/lsb_log_message begin "$@"
|
if [ -z "$1" ]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
echo " * $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
log_end_msg () {
|
log_end_msg () {
|
||||||
/etc/core-lsb/lsb_log_message end "$@"
|
/etc/core-lsb/lsb_log_message end "$@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,11 +21,6 @@ case "$ACTION" in
|
|||||||
warning "$*"
|
warning "$*"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
begin)
|
|
||||||
echo -n $*
|
|
||||||
begin "$*"
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user