Skip to content

Commit 8bf5f88

Browse files
committed
Fix optional nanosecond timestamp
The extension of the timestamp size is missing in log2asc.c and canplayer.c Fixes: 987bc8a ("Optional nanosecond timestamp logging") Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
1 parent 0094905 commit 8bf5f88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

canplayer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#endif
6969

7070
#define DEVSZ 22 /* IFNAMSZ + 6 */
71-
#define TIMESZ sizeof("(1345212884.318850) ")
71+
#define TIMESZ sizeof("(1345212884.318850123) ")
7272
#define BUFSZ (TIMESZ + DEVSZ + AFRSZ)
7373

7474
/* adapt sscanf() functions below on error */

log2asc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static void canxl_asc(cu_t *cu, int devno, int mtu,
296296

297297
#define DEVSZ 22
298298
#define EXTRASZ 20
299-
#define TIMESZ sizeof("(1345212884.318850) ")
299+
#define TIMESZ sizeof("(1345212884.318850123) ")
300300
#define BUFSZ (DEVSZ + AFRSZ + EXTRASZ + TIMESZ)
301301

302302
/* adapt sscanf() functions below on error */

0 commit comments

Comments
 (0)