Skip to content

Commit

Permalink
Fixed the print messages while starting acf-can applications.
Browse files Browse the repository at this point in the history
Signed-off-by: Naresh Nayak <[email protected]>
  • Loading branch information
nayakned authored and SebastianSchildt committed Jan 2, 2025
1 parent 1fbe09e commit 7fe06a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/acf-can/acf-can-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ int main(int argc, char *argv[])
else
printf("\tUsing NTSCF\n");
if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Classic CAN\n");
else if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Ethernet\n");
printf("\tUsing Classic CAN interface: %s\n", can_ifname);
else if(can_variant == AVTP_CAN_FD)
printf("\tUsing CAN FD interface: %s\n", can_ifname);
if(use_udp) {
printf("\tUsing UDP\n");
printf("\tDestination IP: %s, Send port: %d, listening port: %d\n", ip_addr_str, udp_send_port, udp_listen_port);
Expand Down
6 changes: 3 additions & 3 deletions examples/acf-can/acf-can-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ int main(int argc, char *argv[])
// Print current configuration
printf("acf-can-listener configuration:\n");
if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Classic CAN\n");
else if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Ethernet\n");
printf("\tUsing Classic CAN interface: %s\n", can_ifname);
else if(can_variant == AVTP_CAN_FD)
printf("\tUsing CAN FD interface: %s\n", can_ifname);
if(use_udp) {
printf("\tUsing UDP\n");
printf("\tListening port: %d\n", udp_port);
Expand Down
6 changes: 3 additions & 3 deletions examples/acf-can/acf-can-talker.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ int main(int argc, char *argv[])
else
printf("\tUsing NTSCF\n");
if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Classic CAN\n");
else if(can_variant == AVTP_CAN_CLASSIC)
printf("\tUsing Ethernet\n");
printf("\tUsing Classic CAN interface: %s\n", can_ifname);
else if(can_variant == AVTP_CAN_FD)
printf("\tUsing CAN FD interface: %s\n", can_ifname);
if(use_udp) {
printf("\tUsing UDP\n");
printf("\tDestination IP: %s, Send port: %d\n", ip_addr_str, udp_port);
Expand Down

0 comments on commit 7fe06a3

Please sign in to comment.