From cbc0b43621eea7c114a4d433a51afb995dc2948d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 26 Apr 2022 16:29:51 +0200 Subject: [PATCH] lib,radio,rf: fix printf arguments --- lib/src/phy/rf/rf_file_imp_tx.c | 2 +- lib/src/radio/radio.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/rf/rf_file_imp_tx.c b/lib/src/phy/rf/rf_file_imp_tx.c index b3915f3b5..88d3f593d 100644 --- a/lib/src/phy/rf/rf_file_imp_tx.c +++ b/lib/src/phy/rf/rf_file_imp_tx.c @@ -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); if (ret < (size_t)nsamples) { 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), ret, strerror(errno)); diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc index 7ec38258f..988a6848f 100644 --- a/lib/src/radio/radio.cc +++ b/lib/src/radio/radio.cc @@ -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::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)) { logger.error("Error opening RF device abstraction");