Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix streamid print in examples to make clear it is hex #71

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion examples/acf-can/zephyr/acf-can-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ int main(void)
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: %llx, Talker Stream ID: %llx\n", listener_stream_id, talker_stream_id);
printf("\tListener Stream ID: 0x%llx, Talker Stream ID: 0x%llx\n", listener_stream_id, talker_stream_id);
printf("\tNumber of ACF messages per AVTP frame in talker stream: %d\n", num_acf_msgs);

// Open a CAN socket for reading frames
Expand Down
Loading