Fix info format string

master
Xavier Arteaga 3 years ago committed by Xavier Arteaga
parent f250c83a66
commit a9904c2b64

@ -705,7 +705,7 @@ void radio::set_rx_srate(const double& srate)
// Assert ratio is integer
srsran_assert(((uint32_t)cur_rx_srate % (uint32_t)srate) == 0,
"The sampling rate ratio is not integer (%.2f MHz / %.2 MHz = %.3f)",
"The sampling rate ratio is not integer (%.2f MHz / %.2f MHz = %.3f)",
cur_rx_srate / 1e6,
srate / 1e6,
cur_rx_srate / srate);
@ -958,7 +958,7 @@ void radio::set_tx_srate(const double& srate)
// Assert ratio is integer
srsran_assert(((uint32_t)cur_tx_srate % (uint32_t)srate) == 0,
"The sampling rate ratio is not integer (%.2f MHz / %.2 MHz = %.3f)",
"The sampling rate ratio is not integer (%.2f MHz / %.2f MHz = %.3f)",
cur_rx_srate / 1e6,
srate / 1e6,
cur_rx_srate / srate);

Loading…
Cancel
Save