Increased logging in verbose mode

This commit is contained in:
Mark Qvist 2020-05-28 12:20:07 +02:00
parent 764746cc4c
commit 01a6fc1cd8
2 changed files with 3 additions and 1 deletions

1
KISS.c
View File

@ -28,6 +28,7 @@ void kiss_frame_received(int frame_len) {
cleanup();
exit(1);
}
if (verbose && !daemonize) printf("Got %d bytes from TNC, wrote %d bytes to interface\r\n", frame_len, written);
}
}

View File

@ -181,7 +181,8 @@ void read_loop(void) {
}
}
kiss_write_frame(attached_tnc, if_buffer, if_len);
int tnc_written = kiss_write_frame(attached_tnc, if_buffer, if_len);
if (verbose && !daemonize) printf("Got %d bytes from interface, wrote %d bytes to TNC\r\n", if_len, tnc_written);
}
}
} else {