aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-10-03 03:57:42 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-03 03:57:42 (GMT)
commitca9372fc4caa1d88c5951775db4a7c0f8264d15c (patch)
tree806eaf2b0d9a25f0368cff060a55472b122e09ed
parent83e82e2977ea875e3c6ef0a5542a939330c3336e (diff)
parse_saa7134.pl: Add timestamp at the logs
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rwxr-xr-xcontrib/saa7134/parse_saa7134.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/saa7134/parse_saa7134.pl b/contrib/saa7134/parse_saa7134.pl
index 0632fa4..58002a4 100755
--- a/contrib/saa7134/parse_saa7134.pl
+++ b/contrib/saa7134/parse_saa7134.pl
@@ -190,9 +190,9 @@ sub parse_i2c($$$$$)
# Prints I2C transaction
if ($optype eq "write") {
- printf("write_i2c(%s, %s, 0x%02x)\n", $status, $attr, $val >> 8);
+ printf("write_i2c(%s, %s, 0x%02x)\t/* %s */\n", $status, $attr, $val >> 8, $time);
} else {
- printf("val = read_i2c()\t/* read %s, %s, val=0x%02x */\n", $status, $attr, $val >> 8);
+ printf("val = read_i2c()\t/* %s: read %s, %s, val=0x%02x */\n", $time, $status, $attr, $val >> 8);
}
}
@@ -213,9 +213,9 @@ while (<>) {
if ($reg =~ m/SAA7134_I2C_ATTR_STATUS/) {
parse_i2c($time, $optype, $align, $reg, $val);
} elsif ($optype eq "read") {
- printf ("reg = saa_%s(%s); /* read 0x%04x */\n", $op, $reg, $val);
+ printf ("reg = saa_%s(%s); /* %s: read 0x%04x */\n", $op, $reg, $time, $val);
} else {
- printf ("saa_%s(%s, 0x%04x);\n", $op, $reg, $val);
+ printf ("saa_%s(%s, 0x%04x); /* %s */\n", $op, $reg, $val, $time);
}
}
}

Privacy Policy