diff --git a/plugins/samplesink/usrpoutput/usrpoutput.cpp b/plugins/samplesink/usrpoutput/usrpoutput.cpp index 3311d3e76..5cbbbc047 100644 --- a/plugins/samplesink/usrpoutput/usrpoutput.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutput.cpp @@ -1048,7 +1048,7 @@ void USRPOutput::webapiReverseSendSettings(QList& deviceSettingsKeys, c // transfer data that has been modified. When force is on transfer all data except reverse API data if (deviceSettingsKeys.contains("antennaPath") || force) { - swgUsrpOutputSettings->setAntennaPath(&QString(settings.m_antennaPath)); + swgUsrpOutputSettings->setAntennaPath(new QString(settings.m_antennaPath)); } if (deviceSettingsKeys.contains("centerFrequency") || force) { swgUsrpOutputSettings->setCenterFrequency(settings.m_centerFrequency); @@ -1057,7 +1057,7 @@ void USRPOutput::webapiReverseSendSettings(QList& deviceSettingsKeys, c swgUsrpOutputSettings->setDevSampleRate(settings.m_devSampleRate); } if (deviceSettingsKeys.contains("clockSource") || force) { - swgUsrpOutputSettings->setClockSource(&QString(settings.m_clockSource)); + swgUsrpOutputSettings->setClockSource(new QString(settings.m_clockSource)); } if (deviceSettingsKeys.contains("gain") || force) { swgUsrpOutputSettings->setGain(settings.m_gain); diff --git a/plugins/samplesink/usrpoutput/usrpoutputthread.cpp b/plugins/samplesink/usrpoutput/usrpoutputthread.cpp index 580c84ce3..9537cab0d 100644 --- a/plugins/samplesink/usrpoutput/usrpoutputthread.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutputthread.cpp @@ -98,7 +98,7 @@ void USRPOutputThread::run() m_packets++; if (samples_sent != DeviceUSRP::blockSize) { - qDebug("USRPOutputThread::run written %d/%d samples", samples_sent, DeviceUSRP::blockSize); + qDebug("USRPOutputThread::run written %ld/%d samples", samples_sent, DeviceUSRP::blockSize); } } catch (std::exception& e) diff --git a/plugins/samplesource/usrpinput/usrpinputthread.cpp b/plugins/samplesource/usrpinput/usrpinputthread.cpp index 1c671a3cf..54b81aab5 100644 --- a/plugins/samplesource/usrpinput/usrpinputthread.cpp +++ b/plugins/samplesource/usrpinput/usrpinputthread.cpp @@ -132,7 +132,7 @@ void USRPInputThread::run() m_packets++; if (samples_received != DeviceUSRP::blockSize) { - qDebug("USRPInputThread::run - received %d/%d samples", samples_received, DeviceUSRP::blockSize); + qDebug("USRPInputThread::run - received %ld/%d samples", samples_received, DeviceUSRP::blockSize); } if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT) {