]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: more verbose logging message format
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:01:18 +0000 (13:01 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Mar 2011 12:37:17 +0000 (13:37 +0100)
dracut-functions

index 6c7436768a153d68c232a907000e49ccf81d6004..8bdfa6815a700fad84790f8a2e9846f8678719ba 100755 (executable)
@@ -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.