aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-02-15 07:22:24 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2018-02-15 08:00:18 +0100
commit627775357411da00ff06ceec83e34ad639fdaf78 (patch)
treebe30b359a617e3e40af5864531bfa8b0c5b2612d
parent3ab5a3f6a9688fe39a22cd4cf349d2a40e3e52f8 (diff)
Minor debug message corrections
-rw-r--r--src/amps/dsp.c4
-rw-r--r--src/bnetz/dsp.c2
-rw-r--r--src/cnetz/dsp.c4
-rw-r--r--src/libmobile/sender.c2
-rw-r--r--src/nmt/dsp.c2
-rw-r--r--src/r2000/dsp.c4
6 files changed, 9 insertions, 9 deletions
diff --git a/src/amps/dsp.c b/src/amps/dsp.c
index 8c3409a..9ce9c93 100644
--- a/src/amps/dsp.c
+++ b/src/amps/dsp.c
@@ -217,7 +217,7 @@ int dsp_init_sender(amps_t *amps, int tolerant)
amps->fsk_tx_buffer_size = amps->fsk_bitduration + 10; /* 10 extra to avoid overflow due to rounding */
spl = calloc(sizeof(*spl), amps->fsk_tx_buffer_size);
if (!spl) {
- PDEBUG(DDSP, DEBUG_DEBUG, "No memory!\n");
+ PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
rc = -ENOMEM;
goto error;
}
@@ -233,7 +233,7 @@ int dsp_init_sender(amps_t *amps, int tolerant)
PDEBUG(DDSP, DEBUG_DEBUG, " -> Samples in window to analyse level right of edge: %d..%d\n", amps->fsk_rx_window_half, amps->fsk_rx_window_end - 1);
spl = calloc(sizeof(*amps->fsk_rx_window), amps->fsk_rx_window_length);
if (!spl) {
- PDEBUG(DDSP, DEBUG_DEBUG, "No memory!\n");
+ PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
rc = -ENOMEM;
goto error;
}
diff --git a/src/bnetz/dsp.c b/src/bnetz/dsp.c
index 0c060fc..ad818d6 100644
--- a/src/bnetz/dsp.c
+++ b/src/bnetz/dsp.c
@@ -90,7 +90,7 @@ int dsp_init_sender(bnetz_t *bnetz, double squelch_db)
/* init fsk */
if (fsk_init(&bnetz->fsk, bnetz, fsk_send_bit, fsk_receive_bit, bnetz->sender.samplerate, BIT_RATE, F0, F1, TX_PEAK_FSK, 0, BIT_ADJUST) < 0) {
- PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "FSK init failed!\n");
+ PDEBUG_CHAN(DDSP, DEBUG_ERROR, "FSK init failed!\n");
return -EINVAL;
}
diff --git a/src/cnetz/dsp.c b/src/cnetz/dsp.c
index 4c2a05d..38e5f30 100644
--- a/src/cnetz/dsp.c
+++ b/src/cnetz/dsp.c
@@ -112,7 +112,7 @@ int dsp_init_sender(cnetz_t *cnetz, int measure_speed, double clock_speed[2], en
cnetz->fsk_tx_buffer_size = size * 1.1; /* more to compensate clock speed */
cnetz->fsk_tx_buffer = calloc(sizeof(sample_t), cnetz->fsk_tx_buffer_size);
if (!cnetz->fsk_tx_buffer) {
- PDEBUG(DDSP, DEBUG_DEBUG, "No memory!\n");
+ PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
rc = -ENOMEM;
goto error;
}
@@ -127,7 +127,7 @@ int dsp_init_sender(cnetz_t *cnetz, int measure_speed, double clock_speed[2], en
/* create speech buffer */
cnetz->dsp_speech_buffer = calloc(sizeof(sample_t), (int)(cnetz->fsk_bitduration * 70.0)); /* more to compensate clock speed. we just need it to fill 62 bits (60 bits, including pause bits). */
if (!cnetz->dsp_speech_buffer) {
- PDEBUG(DDSP, DEBUG_DEBUG, "No memory!\n");
+ PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
rc = -ENOMEM;
goto error;
}
diff --git a/src/libmobile/sender.c b/src/libmobile/sender.c
index b309c4d..546dcab 100644
--- a/src/libmobile/sender.c
+++ b/src/libmobile/sender.c
@@ -321,7 +321,7 @@ void process_sender_audio(sender_t *sender, int *quit, int latspl)
#endif
count = sender->audio_get_tosend(sender->audio, latspl);
if (count < 0) {
- PDEBUG(DSENDER, DEBUG_ERROR, "Failed to get samples in buffer (rc = %d)!\n", count);
+ PDEBUG(DSENDER, DEBUG_ERROR, "Failed to get number of samples in buffer (rc = %d)!\n", count);
if (count == -EPIPE) {
if (cant_recover) {
cant_recover:
diff --git a/src/nmt/dsp.c b/src/nmt/dsp.c
index d442324..00965ed 100644
--- a/src/nmt/dsp.c
+++ b/src/nmt/dsp.c
@@ -121,7 +121,7 @@ int dsp_init_sender(nmt_t *nmt, double deviation_factor)
/* init fsk */
if (fsk_init(&nmt->fsk, nmt, fsk_send_bit, fsk_receive_bit, nmt->sender.samplerate, BIT_RATE, F0, F1, TX_PEAK_FSK, 1, BIT_ADJUST) < 0) {
- PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "FSK init failed!\n");
+ PDEBUG_CHAN(DDSP, DEBUG_ERROR, "FSK init failed!\n");
return -EINVAL;
}
diff --git a/src/r2000/dsp.c b/src/r2000/dsp.c
index 72f3136..22634aa 100644
--- a/src/r2000/dsp.c
+++ b/src/r2000/dsp.c
@@ -87,7 +87,7 @@ int dsp_init_sender(r2000_t *r2000)
/* init fsk */
if (fsk_init(&r2000->fsk, r2000, fsk_send_bit, fsk_receive_bit, r2000->sender.samplerate, FSK_BIT_RATE, FSK_F0, FSK_F1, TX_PEAK_FSK, 1, FSK_BIT_ADJUST) < 0) {
- PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "FSK init failed!\n");
+ PDEBUG_CHAN(DDSP, DEBUG_ERROR, "FSK init failed!\n");
return -EINVAL;
}
if (r2000->sender.loopback)
@@ -97,7 +97,7 @@ int dsp_init_sender(r2000_t *r2000)
/* init supervisorty fsk */
if (fsk_init(&r2000->super_fsk, r2000, super_send_bit, super_receive_bit, r2000->sender.samplerate, SUPER_BIT_RATE, SUPER_F0, SUPER_F1, TX_PEAK_SUPER, 0, SUPER_BIT_ADJUST) < 0) {
- PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "FSK init failed!\n");
+ PDEBUG_CHAN(DDSP, DEBUG_ERROR, "FSK init failed!\n");
return -EINVAL;
}