Skip to content

Commit

Permalink
Fix streamid print to make clear it is hex
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt committed Jan 9, 2025
1 parent 1e2c016 commit 806c3aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/acf-can/linux/acf-can-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ int main(int argc, char *argv[])
printf("\tDestination MAC Address: %02x:%02x:%02x:%02x:%02x:%02x\n", macaddr[0], macaddr[1], macaddr[2],
macaddr[3], macaddr[4], macaddr[5]);
}
printf("\tListener Stream ID: %lx, Talker Stream ID: %lx\n", listener_stream_id, talker_stream_id);
printf("\tListener Stream ID: 0x%lx, Talker Stream ID: 0x%lx\n", listener_stream_id, talker_stream_id);
printf("\tNumber of ACF messages per AVTP frame in talker stream: %d\n", num_acf_msgs);

// Create an appropriate sockets: UDP or Ethernet raw
Expand Down
2 changes: 1 addition & 1 deletion examples/acf-can/linux/acf-can-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int main(int argc, char *argv[])
printf("\tUsing Ethernet\n");
printf("\tNetwork Interface: %s\n", ifname);
}
printf("\tListener Stream ID: %lx\n", listener_stream_id);
printf("\tListener Stream ID: 0x%lx\n", listener_stream_id);

// Configure an appropriate socket: UDP or Ethernet Raw
if (use_udp) {
Expand Down
2 changes: 1 addition & 1 deletion examples/acf-can/linux/acf-can-talker.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int main(int argc, char *argv[])
printf("\tDestination MAC Address: %02x:%02x:%02x:%02x:%02x:%02x\n", macaddr[0], macaddr[1], macaddr[2],
macaddr[3], macaddr[4], macaddr[5]);
}
printf("\tTalker Stream ID: %lx\n", talker_stream_id);
printf("\tTalker Stream ID: 0x%lx\n", talker_stream_id);
printf("\tNumber of ACF messages per AVTP frame in talker stream: %d\n", num_acf_msgs);

// Create an appropriate talker socket: UDP or Ethernet raw
Expand Down

0 comments on commit 806c3aa

Please sign in to comment.