* [PATCH 0/1] Fix for YB5795
@ 2014-03-27 7:18 Cristian Iorga
2014-03-27 7:18 ` [PATCH 1/1] lsb: fix lsb_log_msg() implementation Cristian Iorga
0 siblings, 1 reply; 2+ messages in thread
From: Cristian Iorga @ 2014-03-27 7:18 UTC (permalink / raw)
To: openembedded-core
The following changes since commit ae938eba92b2c89a9fd91161e57c5dbc594ad4ad:
local.conf.sample.extended: update it for the archiver (2014-03-26 12:15:44 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ciorga/YB5795
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ciorga/YB5795
Cristian Iorga (1):
lsb: fix lsb_log_msg() implementation
meta/recipes-extended/lsb/lsb/init-functions | 7 ++++++-
meta/recipes-extended/lsb/lsb/lsb_log_message | 5 -----
2 files changed, 6 insertions(+), 6 deletions(-)
--
1.8.3.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] lsb: fix lsb_log_msg() implementation
2014-03-27 7:18 [PATCH 0/1] Fix for YB5795 Cristian Iorga
@ 2014-03-27 7:18 ` Cristian Iorga
0 siblings, 0 replies; 2+ messages in thread
From: Cristian Iorga @ 2014-03-27 7:18 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/recipes-extended/lsb/lsb/init-functions | 7 ++++++-
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 e15827a..7c1dce2 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 a716518..10343b0 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
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-27 7:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 7:18 [PATCH 0/1] Fix for YB5795 Cristian Iorga
2014-03-27 7:18 ` [PATCH 1/1] lsb: fix lsb_log_msg() implementation Cristian Iorga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox