--- a/plugins/samplesource/gnuradio/gnuradioinput.cpp
+++ b/plugins/samplesource/gnuradio/gnuradioinput.cpp
@@ -135,7 +135,7 @@
 			freqMin = freq_rage.start();
 			freqMax = freq_rage.stop();
 		} catch ( std::exception &ex ) {
-			qDebug(ex.what());
+			qDebug("%s",qPrintable(ex.what()));
 		}
 
 		freqCorr = radio->get_freq_corr();
@@ -160,14 +160,14 @@
 
 				m_settings.m_namedGains.push_back( pair2 );
 			} catch ( std::exception &ex ) {
-				qDebug(ex.what());
+				qDebug("%s",qPrintable(ex.what()));
 			}
 		}
 
 		try {
 			sampRates = radio->get_sample_rates().values();
 		} catch ( std::exception &ex ) {
-			qDebug(ex.what());
+			qDebug("%s",qPrintable(ex.what()));
 		}
 
 		antennas.clear();
@@ -188,7 +188,7 @@
 		try {
 			bandwidths = radio->get_bandwidth_range().values();
 		} catch ( std::exception &ex ) {
-			qDebug(ex.what());
+			qDebug("%s",qPrintable(ex.what()));
 		}
 	}
 
@@ -324,7 +324,7 @@
 		}
 
 	} catch ( std::exception &ex ) {
-		qDebug(ex.what());
+		qDebug("%s",qPrintable(ex.what()));
 		return false;
 	}
 
