[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/6] TestSupport: logm: use show_abs_time



Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 Osstest/TestSupport.pm |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index a957a69..0db1366 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -175,9 +175,7 @@ sub ts_get_host_guest { # pass this @ARGV
 sub logm ($) {
     my ($m) = @_;
     my @t = gmtime;
-    my $fm = sprintf "%04d-%02d-%02d %02d:%02d:%02d Z %s\n",
-               $t[5]+1900,$t[4]+1,$t[3], $t[2],$t[1],$t[0],
-               $m;
+    my $fm = (show_abs_time time)." $m\n";
     foreach my $h ((ref($logm_handle) eq 'ARRAY')
                   ? @$logm_handle : $logm_handle) {
        print $h $fm or die $!;
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.