Skip to content

Commit

Permalink
transmit: prefix FEC ss printout with MOD_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jan 4, 2024
1 parent aaa5998 commit 5b0b996
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/transmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,14 @@ static inline void check_symbol_size(int fec_symbol_size, int payload_len)
}

if (fec_symbol_size > payload_len) {
LOG(LOG_LEVEL_WARNING) << "Warning: FEC symbol size exceeds payload size! "
"FEC symbol size: " << fec_symbol_size << "\n";
LOG(LOG_LEVEL_WARNING) << MOD_NAME
"Warning: FEC symbol size exceeds payload size! "
"FEC symbol size: " << fec_symbol_size
<< "\n";
} else {
const int ll =
status_printed ? LOG_LEVEL_DEBUG2 : LOG_LEVEL_INFO;
LOG(ll) << "FEC symbol size: " << fec_symbol_size
LOG(ll) << MOD_NAME "FEC symbol size: " << fec_symbol_size
<< ", symbols per packet: "
<< payload_len / fec_symbol_size << ", payload size: "
<< payload_len / fec_symbol_size * fec_symbol_size
Expand Down

0 comments on commit 5b0b996

Please sign in to comment.