diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2014-03-27 09:18:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-27 09:41:16 +0000 |
commit | 365ab9118b6c68aedb2e79129202b385329a8abb (patch) | |
tree | 43b403578355bff4ea22211e572a4fc04afcf705 /meta/recipes-extended | |
parent | 31b5aeb5a0b82842e1dd8545bf5d43778d8c218b (diff) | |
download | openembedded-core-365ab9118b6c68aedb2e79129202b385329a8abb.tar.gz openembedded-core-365ab9118b6c68aedb2e79129202b385329a8abb.tar.bz2 openembedded-core-365ab9118b6c68aedb2e79129202b385329a8abb.zip |
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]
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rwxr-xr-x | meta/recipes-extended/lsb/lsb/init-functions | 7 | ||||
-rwxr-xr-x | meta/recipes-extended/lsb/lsb/lsb_log_message | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions index e15827ad52..7c1dce24cf 100755 --- a/meta/recipes-extended/lsb/lsb/init-functions +++ b/meta/recipes-extended/lsb/lsb/init-functions @@ -30,10 +30,15 @@ log_warning_msg () { /etc/core-lsb/lsb_log_message warning "$@" } +# int log_begin_message (char *message) log_begin_msg () { - /etc/core-lsb/lsb_log_message begin "$@" + if [ -z "$1" ]; then + return 1 + fi + echo " * $@" } + log_end_msg () { /etc/core-lsb/lsb_log_message end "$@" } diff --git a/meta/recipes-extended/lsb/lsb/lsb_log_message b/meta/recipes-extended/lsb/lsb/lsb_log_message index a716518bdd..10343b0819 100755 --- a/meta/recipes-extended/lsb/lsb/lsb_log_message +++ b/meta/recipes-extended/lsb/lsb/lsb_log_message @@ -21,11 +21,6 @@ case "$ACTION" in warning "$*" echo ;; - begin) - echo -n $* - begin "$*" - echo - ;; *) ;; esac |