From: Harald Hoyer Date: Mon, 7 Mar 2011 12:01:18 +0000 (+0100) Subject: dracut-functions: more verbose logging message format X-Git-Tag: 009~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebaee770aca8400d5441dd357564a7484ee74cb3;p=thirdparty%2Fdracut.git dracut-functions: more verbose logging message format --- diff --git a/dracut-functions b/dracut-functions index 6c7436768..8bdfa6815 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.