mcelog-0.8_pre1-timestamp-mcelog.patch 425 B

123456789
  1. diff -Nuar mcelog-0.8pre.orig/mcelog.cron mcelog-0.8pre/mcelog.cron
  2. --- mcelog-0.8pre.orig/mcelog.cron 2006-02-08 05:09:03.000000000 -0800
  3. +++ mcelog-0.8pre/mcelog.cron 2008-02-22 11:32:06.717012502 -0800
  4. @@ -1,2 +1,3 @@
  5. #!/bin/bash
  6. -/usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog
  7. +header="$(date +"%b %d %H:%M:%S") $(hostname) "
  8. +/usr/sbin/mcelog --ignorenodev --filter | sed "s,^,$header,g" >> /var/log/mcelog