]> rtime.felk.cvut.cz Git - sojka/can-utils.git/blobdiff - asc2log.c
cangw: add semantic check for checksum options
[sojka/can-utils.git] / asc2log.c
index 8c0e0a5e5441d1e8c7cfd376c325a658ab1321c8..cc0a7c3439b935891476b3954b875071055afe1e 100644 (file)
--- a/asc2log.c
+++ b/asc2log.c
@@ -73,11 +73,14 @@ void print_usage(char *prg)
 void prframe(FILE *file, struct timeval *tv, int dev, struct can_frame *cf) {
 
        fprintf(file, "(%ld.%06ld) ", tv->tv_sec, tv->tv_usec);
+
        if (dev > 0)
                fprintf(file, "can%d ", dev-1);
        else
                fprintf(file, "canX ");
-       fprint_canframe(file, cf, "\n", 0);
+
+       /* no CAN FD support so far */
+       fprint_canframe(file, (struct canfd_frame *)cf, "\n", 0, CAN_MAX_DLEN);
 }
 
 void get_can_id(struct can_frame *cf, char *idstring, int base) {