fixed missing newline

This commit is contained in:
Данила Горнушко 2023-11-28 07:04:56 +03:00
parent 18514d4d96
commit 4315b513d7

View file

@ -79,7 +79,7 @@ static int send_can_frame(int argc, char **argv) {
// free(can_msg_str_buf); // free(can_msg_str_buf);
return 0; return 0;
invalid_args: invalid_args:
printf("Invalid arguments!"); printf("Invalid arguments!\n");
free(can_msg_str_buf); free(can_msg_str_buf);
return 1; return 1;
} }
@ -100,7 +100,7 @@ static const char* can_states_str[] = {
static int canstats(int argc, char **argv) { static int canstats(int argc, char **argv) {
if (curr_can_state.state == CAN_NOT_INSTALLED) { if (curr_can_state.state == CAN_NOT_INSTALLED) {
printf("CAN driver is not installed!"); printf("CAN driver is not installed!\n");
return 0; return 0;
} else { } else {
const char *state_str = can_states_str[curr_can_state.state]; const char *state_str = can_states_str[curr_can_state.state];