Fixed typo in log2asc.c

Added asc2log.c to convert existing CANoe/CANalyser logfiles into socketcan
logfiles (with absolute and full qualified timestamps).
The date and the other settings (dec/hex absolute/relative) are taken from
the head of the ASC files.
This commit is contained in:
Oliver Hartkopp
2007-01-10 17:18:01 +00:00
parent c2424910ac
commit 3d26e6f710
3 changed files with 341 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ int main(int argc, char **argv)
fprintf(outfile, "%-2d ", devno); /* channel number left aligned */
if (cf.can_id & CAN_ERR_FLAG)
fprintf(outfile, "(errorframe)");
fprintf(outfile, "ErrorFrame");
else {
sprintf(id, "%X%c", cf.can_id & CAN_EFF_MASK,
(cf.can_id & CAN_EFF_FLAG)?'x':' ');