From ebaee770aca8400d5441dd357564a7484ee74cb3 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 7 Mar 2011 13:01:18 +0100 Subject: [PATCH] dracut-functions: more verbose logging message format --- dracut-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dracut-functions b/dracut-functions index 6c74367..8bdfa68 100755 --- a/dracut-functions +++ b/dracut-functions @@ -73,17 +73,17 @@ fi dwarning() { echo "W: $@" >&2 - [[ -w $dracutlogfile ]] && echo "W: $@" >>"$dracutlogfile" + [[ -w $dracutlogfile ]] && echo $(date) "Warn:" $@ >>"$dracutlogfile" } dinfo() { [[ $beverbose ]] && echo "I: $@" >&2 - [[ -w $dracutlogfile ]] && echo "I: $@" >>"$dracutlogfile" + [[ -w $dracutlogfile ]] && echo $(date) "Info:" $@ >>"$dracutlogfile" } derror() { echo "E: $@" >&2 - [[ -w $dracutlogfile ]] && echo "E: $@" >>"$dracutlogfile" + [[ -w $dracutlogfile ]] && echo $(date) "Err:" $@ >>"$dracutlogfile" } # Function prints global variables in format name=value line by line. -- 2.7.4