Fix info format string

This commit is contained in:
Xavier Arteaga 2021-10-08 17:41:45 +02:00 committed by Xavier Arteaga
parent f250c83a66
commit a9904c2b64
1 changed files with 2 additions and 2 deletions

View File

@ -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);