lib,radio,rf: fix printf arguments

master
Andre Puschmann 3 years ago
parent 67f66e7d63
commit cbc0b43621

@ -81,7 +81,7 @@ static int _rf_file_tx_baseband(rf_file_tx_t* q, cf_t* buffer, uint32_t nsamples
size_t ret = fwrite(buf, (size_t)sample_sz, (size_t)nsamples, q->file); size_t ret = fwrite(buf, (size_t)sample_sz, (size_t)nsamples, q->file);
if (ret < (size_t)nsamples) { if (ret < (size_t)nsamples) {
rf_file_error(q->id, rf_file_error(q->id,
"[file] Error: transmitter expected %d bytes and sent %d. %s.\n", "[file] Error: transmitter expected %d bytes and sent %zd. %s.\n",
NSAMPLES2NBYTES(nsamples), NSAMPLES2NBYTES(nsamples),
ret, ret,
strerror(errno)); strerror(errno));

@ -496,7 +496,7 @@ bool radio::open_dev(const uint32_t &device_idx, FILE** rx_files, FILE** tx_file
{ {
srsran_rf_t* rf_device = &rf_devices[device_idx]; srsran_rf_t* rf_device = &rf_devices[device_idx];
srsran::console("Opening %d channels in RF device abstraction\n"); srsran::console("Opening channels idx %d in RF device abstraction\n", device_idx);
if (srsran_rf_open_file(rf_device, rx_files, tx_files, nof_channels, base_srate)) { if (srsran_rf_open_file(rf_device, rx_files, tx_files, nof_channels, base_srate)) {
logger.error("Error opening RF device abstraction"); logger.error("Error opening RF device abstraction");

Loading…
Cancel
Save