mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
testj1939: print proper offset in the data damp
without this patch we will always print "0008" on each line Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ int main(int argc, char *argv[])
|
|||||||
peername.can_addr.j1939.pgn);
|
peername.can_addr.j1939.pgn);
|
||||||
for (i = 0, j = 0; i < ret; ++i, j++) {
|
for (i = 0, j = 0; i < ret; ++i, j++) {
|
||||||
if (j == 8) {
|
if (j == 8) {
|
||||||
printf("\n%05x ", j);
|
printf("\n%05x ", i);
|
||||||
j = 0;
|
j = 0;
|
||||||
}
|
}
|
||||||
printf(" %02x", dat[i]);
|
printf(" %02x", dat[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user