add channel id to timeout msgs

This commit is contained in:
Max 2021-08-11 15:41:49 -04:00
parent a8d8dbc882
commit 3e2aece2e6
2 changed files with 4 additions and 4 deletions

View File

@ -1351,8 +1351,8 @@ class rx_ctl (object):
self.update_state(cmd, curr_time, int(msg.arg1())) # self.update_state(cmd, curr_time)
return
elif mtype == -1: # timeout
if self.debug > 10:
sys.stderr.write('%f process_data_unit timeout\n' % time.time())
if self.debug > 0:
sys.stderr.write('%f process_data_unit timeout, channel %s\n' % (time.time(), msgq_id))
self.update_state('timeout', curr_time)
if self.logfile_workers:
self.logging_scheduler(curr_time)

View File

@ -750,8 +750,8 @@ p25p1_fdma::rx_sym (const uint8_t *syms, int nsyms)
}
diff_usec += diff_sec * 1000000;
if (diff_usec >= TIMEOUT_THRESHOLD) {
if (d_debug > 10)
fprintf(stderr, "%010lu.%06lu p25p1_fdma::rx_sym() timeout\n", currtime.tv_sec, currtime.tv_usec);
if (d_debug > 0)
fprintf(stderr, "%010lu.%06lu p25p1_fdma::rx_sym() timeout, channel %d\n", currtime.tv_sec, currtime.tv_usec, d_msgq_id);
if (d_do_audio_output) {
op25audio.send_audio_flag(op25_audio::DRAIN);