Merge pull request #232 from olerem/testj1939

testj1939: print proper offset in the data damp
pull/238/head
Marc Kleine-Budde 2020-08-07 15:06:36 +02:00 committed by GitHub
commit ab23c6f7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ int main(int argc, char *argv[])
peername.can_addr.j1939.pgn);
for (i = 0, j = 0; i < ret; ++i, j++) {
if (j == 8) {
printf("\n%05x ", j);
printf("\n%05x ", i);
j = 0;
}
printf(" %02x", dat[i]);