amps: Fix typos in logs.
This commit is contained in:
committed by
Andreas Eversberg
parent
b5aae98b6c
commit
8f91ed1f64
@@ -555,10 +555,10 @@ int amps_create(const char *kanal, enum amps_chan_type chan_type, const char *de
|
||||
/* check if channel type matches channel number */
|
||||
ct = amps_channel2type(atoi(kanal));
|
||||
if (ct == CHAN_TYPE_CC && chan_type != CHAN_TYPE_PC && chan_type != CHAN_TYPE_CC_PC && chan_type != CHAN_TYPE_CC_PC_VC) {
|
||||
LOGP(DAMPS, LOGL_NOTICE, "Channel number %s belongs to a control channel, but your channel type '%s' requires to be on a voice channel number. Some phone may reject this, but all my phones don't.\n", kanal, chan_type_long_name(chan_type));
|
||||
LOGP(DAMPS, LOGL_NOTICE, "Channel number %s belongs to a control channel, but your channel type '%s' requires it to be on a voice channel number. Some phones may reject this, but all my phones don't.\n", kanal, chan_type_long_name(chan_type));
|
||||
}
|
||||
if (ct == CHAN_TYPE_VC && chan_type != CHAN_TYPE_VC) {
|
||||
LOGP(DAMPS, LOGL_ERROR, "Channel number %s belongs to a voice channel, but your channel type '%s' requires to be on a control channel number. Please use correct channel.\n", kanal, chan_type_long_name(chan_type));
|
||||
LOGP(DAMPS, LOGL_ERROR, "Channel number %s belongs to a voice channel, but your channel type '%s' requires it to be on a control channel number. Please use correct channel.\n", kanal, chan_type_long_name(chan_type));
|
||||
return -EINVAL;
|
||||
}
|
||||
/* only even channels */
|
||||
|
@@ -964,7 +964,7 @@ void amps_set_dsp_mode(amps_t *amps, enum dsp_mode mode, int frame_length)
|
||||
if (mode == DSP_MODE_AUDIO_RX_AUDIO_TX && amps->dsp_mode != mode)
|
||||
jitter_reset(&s->sender.dejitter);
|
||||
|
||||
LOGP_CHAN(DDSP, LOGL_DEBUG, "Reset FSK frame transmitter, due to setting dsp mode.\n");
|
||||
LOGP_CHAN(DDSP, LOGL_DEBUG, "Reset FSK frame transmitter, due to setting DSP mode.\n");
|
||||
|
||||
amps->dsp_mode = mode;
|
||||
if (frame_length)
|
||||
|
@@ -3512,7 +3512,7 @@ int amps_encode_frame_focc(amps_t *amps, char *bits)
|
||||
if (++amps->tx_focc_frame_count >= amps->si.overhead_repeat)
|
||||
amps->tx_focc_frame_count = 0;
|
||||
if (debug)
|
||||
LOGP_CHAN(DFRAME, LOGL_INFO, "Subsequent system/filler frames are not show, to prevent flooding the output.\n");
|
||||
LOGP_CHAN(DFRAME, LOGL_INFO, "Subsequent system/filler frames are not shown, to prevent flooding the output.\n");
|
||||
amps->tx_focc_debugged = 1;
|
||||
|
||||
send:
|
||||
|
@@ -1622,7 +1622,7 @@ const char *cnetz_encode_telegramm(cnetz_t *cnetz)
|
||||
cnetz->sched_lr_debugged = 1;
|
||||
if (opcode == OPCODE_MLR_M && !cnetz->sched_mlr_debugged) {
|
||||
cnetz->sched_mlr_debugged = 1;
|
||||
LOGP(DFRAME, LOGL_INFO, "Subsequent IDLE frames are not show, to prevent flooding the output.\n");
|
||||
LOGP(DFRAME, LOGL_INFO, "Subsequent IDLE frames are not shown, to prevent flooding the output.\n");
|
||||
}
|
||||
|
||||
return bits;
|
||||
|
@@ -304,7 +304,7 @@ void *sdr_open(int __attribute__((__unused__)) direction, const char __attribute
|
||||
This is correct, since there is no bandwidth
|
||||
below new center frequency.
|
||||
*/
|
||||
LOGP(DSDR, LOGL_INFO, "We shift center frequency %.0f KHz down (half bandwidth), to prevent channel from overlap with DC level.\n", bandwidth / 2.0 / 1e3);
|
||||
LOGP(DSDR, LOGL_INFO, "We shift center frequency %.0f KHz down (half bandwidth), to prevent channel from overlapping with DC level.\n", bandwidth / 2.0 / 1e3);
|
||||
} else {
|
||||
/* find two channels that are aside the center */
|
||||
double low_dist = 0, high_dist = 0, dist;
|
||||
@@ -342,7 +342,7 @@ void *sdr_open(int __attribute__((__unused__)) direction, const char __attribute
|
||||
tx_center_frequency =
|
||||
((sdr->chan[low_c].tx_frequency) +
|
||||
(sdr->chan[high_c].tx_frequency)) / 2.0;
|
||||
LOGP(DSDR, LOGL_INFO, "We move center freqeuency between the two channels in the middle, to prevent them from overlap with DC level.\n");
|
||||
LOGP(DSDR, LOGL_INFO, "We move center frequency between the two channels in the middle, to prevent them from overlapping with DC level.\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ void *sdr_open(int __attribute__((__unused__)) direction, const char __attribute
|
||||
This is correct, since there is no bandwidth
|
||||
below new center frequency.
|
||||
*/
|
||||
LOGP(DSDR, LOGL_INFO, "We shift center frequency %.0f KHz down (half bandwidth), to prevent channel from overlap with DC level.\n", bandwidth / 2.0 / 1e3);
|
||||
LOGP(DSDR, LOGL_INFO, "We shift center frequency %.0f KHz down (half bandwidth), to prevent channel from overlapping with DC level.\n", bandwidth / 2.0 / 1e3);
|
||||
} else {
|
||||
/* find two channels that are aside the center */
|
||||
double low_dist, high_dist, dist;
|
||||
@@ -454,7 +454,7 @@ void *sdr_open(int __attribute__((__unused__)) direction, const char __attribute
|
||||
rx_center_frequency =
|
||||
((sdr->chan[low_c].rx_frequency) +
|
||||
(sdr->chan[high_c].rx_frequency)) / 2.0;
|
||||
LOGP(DSDR, LOGL_INFO, "We move center freqeuency between the two channels in the middle, to prevent them from overlap with DC level.\n");
|
||||
LOGP(DSDR, LOGL_INFO, "We move center frequency between the two channels in the middle, to prevent them from overlapping with DC level.\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ void *sdr_open(int __attribute__((__unused__)) direction, const char __attribute
|
||||
display_iq_init(samplerate);
|
||||
display_spectrum_init(samplerate, rx_center_frequency);
|
||||
|
||||
LOGP(DSDR, LOGL_INFO, "Using local oscillator offseet: %.0f Hz\n", sdr_config->lo_offset);
|
||||
LOGP(DSDR, LOGL_INFO, "Using local oscillator offset: %.0f Hz\n", sdr_config->lo_offset);
|
||||
|
||||
#ifdef HAVE_UHD
|
||||
if (sdr_config->uhd) {
|
||||
|
@@ -1790,7 +1790,7 @@ const char *nmt_get_frame(nmt_t *nmt)
|
||||
if (debug)
|
||||
LOGP_CHAN(DNMT, LOGL_DEBUG, "Sending frame %s.\n", nmt_frame_name(frame.mt));
|
||||
if (debug && nmt->tx_last_frame_idle)
|
||||
LOGP_CHAN(DNMT, LOGL_DEBUG, "Subsequent IDLE frames are not show, to prevent flooding the output.\n");
|
||||
LOGP_CHAN(DNMT, LOGL_DEBUG, "Subsequent IDLE frames are not shown, to prevent flooding the output.\n");
|
||||
return bits;
|
||||
}
|
||||
|
||||
|
@@ -1227,7 +1227,7 @@ const char *r2000_get_frame(r2000_t *r2000)
|
||||
if (debug)
|
||||
LOGP_CHAN(DR2000, LOGL_DEBUG, "Sending frame %s.\n", r2000_frame_name(frame.message, REL_TO_SM));
|
||||
if (debug && r2000->tx_last_frame_idle)
|
||||
LOGP_CHAN(DR2000, LOGL_DEBUG, "Subsequent IDLE frames are not show, to prevent flooding the output.\n");
|
||||
LOGP_CHAN(DR2000, LOGL_DEBUG, "Subsequent IDLE frames are not shown, to prevent flooding the output.\n");
|
||||
return bits;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user