Fix errors in strings

Errors found with codespell.
This commit is contained in:
Daniele Forsi 2021-09-19 21:15:34 +02:00
parent 6bfd22811c
commit d10ccb6cc0
8 changed files with 12 additions and 12 deletions

View File

@ -321,7 +321,7 @@ static void * tnc_listen_thread (void *arg)
s_tnc_sock = dwsock_connect (s_tnc_host, s_tnc_port, "TNC", 0, 0, tncaddr); s_tnc_sock = dwsock_connect (s_tnc_host, s_tnc_port, "TNC", 0, 0, tncaddr);
if (s_tnc_sock != -1) { if (s_tnc_sock != -1) {
dw_printf ("Succesfully reattached to network TNC.\n"); dw_printf ("Successfully reattached to network TNC.\n");
// Might need to run TNC initialization again. // Might need to run TNC initialization again.
// For example, a server would register its callsigns. // For example, a server would register its callsigns.

View File

@ -703,7 +703,7 @@ int main (int argc, char *argv[])
dw_printf ("%d packets decoded in %.3f seconds. %.1f x realtime\n", packets_decoded_total, elapsed, total_filetime/elapsed); dw_printf ("%d packets decoded in %.3f seconds. %.1f x realtime\n", packets_decoded_total, elapsed, total_filetime/elapsed);
if (d_o_opt) { if (d_o_opt) {
dw_printf ("DCD count = %d\n", dcd_count); dw_printf ("DCD count = %d\n", dcd_count);
dw_printf ("DCD missing erors = %d\n", dcd_missing_errors); dw_printf ("DCD missing errors = %d\n", dcd_missing_errors);
} }
if (error_if_less_than != -1 && packets_decoded_total < error_if_less_than) { if (error_if_less_than != -1 && packets_decoded_total < error_if_less_than) {

View File

@ -2993,7 +2993,7 @@ dw_printf ("%s:%d, %d srej exceptions, V(R)=%d, N(S)=%d\n", __func__, __LINE__,
if (first == AX25MODULO(S->vr - 1, S->modulo, __FILE__, __func__, __LINE__)) { if (first == AX25MODULO(S->vr - 1, S->modulo, __FILE__, __func__, __LINE__)) {
// Oops! Went too far. This I frame was already processed. // Oops! Went too far. This I frame was already processed.
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
dw_printf ("INTERNAL ERROR calulating what to put in SREJ, %s line %d\n", __func__, __LINE__); dw_printf ("INTERNAL ERROR calculating what to put in SREJ, %s line %d\n", __func__, __LINE__);
dw_printf ("V(R)=%d, N(S)=%d, SREJ exception=%d, first=%d, ask_resend_count=%d\n", S->vr, ns, selective_reject_exception(S), first, ask_resend_count); dw_printf ("V(R)=%d, N(S)=%d, SREJ exception=%d, first=%d, ask_resend_count=%d\n", S->vr, ns, selective_reject_exception(S), first, ask_resend_count);
int k; int k;
for (k=0; k<128; k++) { for (k=0; k<128; k++) {
@ -3146,7 +3146,7 @@ static void send_srej_frames (ax25_dlsm_t *S, int *resend, int count, int allow_
if (s_debug_retry) { if (s_debug_retry) {
text_color_set(DW_COLOR_INFO); text_color_set(DW_COLOR_INFO);
dw_printf ("%s line %d\n", __func__, __LINE__); dw_printf ("%s line %d\n", __func__, __LINE__);
//dw_printf ("state=%d, count=%d, k=%d, V(R)=%d, SREJ exeception=%d\n", S->state, count, S->k_maxframe, S->vr, selective_reject_exception(S)); //dw_printf ("state=%d, count=%d, k=%d, V(R)=%d, SREJ exception=%d\n", S->state, count, S->k_maxframe, S->vr, selective_reject_exception(S));
dw_printf ("state=%d, count=%d, k=%d, V(R)=%d\n", S->state, count, S->k_maxframe, S->vr); dw_printf ("state=%d, count=%d, k=%d, V(R)=%d\n", S->state, count, S->k_maxframe, S->vr);
dw_printf ("resend[]="); dw_printf ("resend[]=");

View File

@ -1566,7 +1566,7 @@ static void aprs_message (decode_aprs_t *A, unsigned char *info, int ilen, int q
telemetry_unit_label_message (addressee, p->message+5); telemetry_unit_label_message (addressee, p->message+5);
} }
else if (strncmp(p->message,"EQNS.",5) == 0) { else if (strncmp(p->message,"EQNS.",5) == 0) {
snprintf (A->g_msg_type, sizeof(A->g_msg_type), "Telemetry Equation Coefficents Message for \"%s\"", addressee); snprintf (A->g_msg_type, sizeof(A->g_msg_type), "Telemetry Equation Coefficients Message for \"%s\"", addressee);
A->g_message_subtype = message_subtype_telem_eqns; A->g_message_subtype = message_subtype_telem_eqns;
telemetry_coefficents_message (addressee, p->message+5, quiet); telemetry_coefficents_message (addressee, p->message+5, quiet);
} }

View File

@ -503,8 +503,8 @@ int demod_init (struct audio_s *pa)
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
dw_printf ("Two incompatible versions of 2400 bps QPSK are now available.\n"); dw_printf ("Two incompatible versions of 2400 bps QPSK are now available.\n");
dw_printf ("For compatbility with direwolf <= 1.5, use 'V26A' modem option in config file.\n"); dw_printf ("For compatibility with direwolf <= 1.5, use 'V26A' modem option in config file.\n");
dw_printf ("For compatbility MFJ-2400 use 'V26B' modem option in config file.\n"); dw_printf ("For compatibility MFJ-2400 use 'V26B' modem option in config file.\n");
dw_printf ("Command line options -j and -J can be used for channel 0.\n"); dw_printf ("Command line options -j and -J can be used for channel 0.\n");
dw_printf ("For more information, read the Dire Wolf User Guide and\n"); dw_printf ("For more information, read the Dire Wolf User Guide and\n");
dw_printf ("2400-4800-PSK-for-APRS-Packet-Radio.pdf.\n"); dw_printf ("2400-4800-PSK-for-APRS-Packet-Radio.pdf.\n");

View File

@ -915,7 +915,7 @@ static void usage(void)
dw_printf (" a serial port. e.g. /dev/ttyAMA0 or COM3.\n"); dw_printf (" a serial port. e.g. /dev/ttyAMA0 or COM3.\n");
dw_printf (" -s Serial port speed, default 9600.\n"); dw_printf (" -s Serial port speed, default 9600.\n");
dw_printf (" -v Verbose. Show the KISS frame contents.\n"); dw_printf (" -v Verbose. Show the KISS frame contents.\n");
dw_printf (" -f Transmit files directory. Processs and delete files here.\n"); dw_printf (" -f Transmit files directory. Process and delete files here.\n");
dw_printf (" -o Receive output queue directory. Store received frames here.\n"); dw_printf (" -o Receive output queue directory. Store received frames here.\n");
dw_printf (" -T Precede received frames with 'strftime' format time stamp.\n"); dw_printf (" -T Precede received frames with 'strftime' format time stamp.\n");
usage2(); usage2();
@ -929,7 +929,7 @@ static void usage2 (void)
dw_printf ("Input, starting with upper case letter or digit, is assumed\n"); dw_printf ("Input, starting with upper case letter or digit, is assumed\n");
dw_printf ("to be an AX.25 frame in the usual TNC2 monitoring format.\n"); dw_printf ("to be an AX.25 frame in the usual TNC2 monitoring format.\n");
dw_printf ("\n"); dw_printf ("\n");
dw_printf ("Input, starting with a lower case letter is a commmand.\n"); dw_printf ("Input, starting with a lower case letter is a command.\n");
dw_printf ("Whitespace, as shown in examples, is optional.\n"); dw_printf ("Whitespace, as shown in examples, is optional.\n");
dw_printf ("\n"); dw_printf ("\n");
dw_printf (" letter meaning example\n"); dw_printf (" letter meaning example\n");

View File

@ -397,7 +397,7 @@ static void debug_print (fromto_t fromto, int client, struct agwpe_s *pmsg, int
if (msg_len < 36) { if (msg_len < 36) {
text_color_set (DW_COLOR_ERROR); text_color_set (DW_COLOR_ERROR);
dw_printf ("AGWPE message length, %d, is shorter than minumum 36.\n", msg_len); dw_printf ("AGWPE message length, %d, is shorter than minimum 36.\n", msg_len);
} }
if (msg_len != netle2host(pmsg->data_len_NETLE) + 36) { if (msg_len != netle2host(pmsg->data_len_NETLE) + 36) {
text_color_set (DW_COLOR_ERROR); text_color_set (DW_COLOR_ERROR);

View File

@ -771,7 +771,7 @@ void telemetry_coefficents_message (char *station, char *msg, int quiet)
else { else {
if ( ! quiet) { if ( ! quiet) {
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
dw_printf ("Equation coefficent position A%d%c is empty.\n", n/3+1, n%3+'a'); dw_printf ("Equation coefficient position A%d%c is empty.\n", n/3+1, n%3+'a');
dw_printf ("Some applications might not handle this correctly.\n"); dw_printf ("Some applications might not handle this correctly.\n");
} }
} }
@ -782,7 +782,7 @@ void telemetry_coefficents_message (char *station, char *msg, int quiet)
if (n != T_NUM_ANALOG * 3) { if (n != T_NUM_ANALOG * 3) {
if ( ! quiet) { if ( ! quiet) {
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
dw_printf ("Found %d equation coefficents when 15 were expected.\n", n); dw_printf ("Found %d equation coefficients when 15 were expected.\n", n);
dw_printf ("Some applications might not handle this correctly.\n"); dw_printf ("Some applications might not handle this correctly.\n");
} }
} }