mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 04:50:29 -04:00 
			
		
		
		
	Restore some logging.
This commit is contained in:
		
							parent
							
								
									280346e39b
								
							
						
					
					
						commit
						1361e55f47
					
				
							
								
								
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							| @ -96,6 +96,6 @@ static int runQtApplication(int argc, char* argv[]) | |||||||
| int main(int argc, char* argv[]) | int main(int argc, char* argv[]) | ||||||
| { | { | ||||||
| 	int res = runQtApplication(argc, argv); | 	int res = runQtApplication(argc, argv); | ||||||
| 	qDebug("regular program exit"); | 	qWarning("SDRangelove quit."); | ||||||
| 	return res; | 	return res; | ||||||
| } | } | ||||||
|  | |||||||
| @ -108,7 +108,7 @@ bool RTLSDRInput::startInput(int device) | |||||||
| 		qCritical("error accessing USB device"); | 		qCritical("error accessing USB device"); | ||||||
| 		goto failed; | 		goto failed; | ||||||
| 	} | 	} | ||||||
| 	qDebug("RTLSDRInput open: %s %s, SN: %s", vendor, product, serial); | 	qWarning("RTLSDRInput open: %s %s, SN: %s", vendor, product, serial); | ||||||
| 	m_deviceDescription = QString("%1 (SN %2)").arg(product).arg(serial); | 	m_deviceDescription = QString("%1 (SN %2)").arg(product).arg(serial); | ||||||
| 
 | 
 | ||||||
| 	if((res = rtlsdr_set_sample_rate(m_dev, 1536000)) < 0) { | 	if((res = rtlsdr_set_sample_rate(m_dev, 1536000)) < 0) { | ||||||
|  | |||||||
| @ -306,12 +306,12 @@ void MainWindow::handleMessages() | |||||||
| { | { | ||||||
| 	Message* message; | 	Message* message; | ||||||
| 	while((message = m_messageQueue->accept()) != NULL) { | 	while((message = m_messageQueue->accept()) != NULL) { | ||||||
| 		//qDebug("Message: %s", message->getIdentifier());
 | 		qDebug("Message: %s", message->getIdentifier()); | ||||||
| 		if(DSPEngineReport::match(message)) { | 		if(DSPEngineReport::match(message)) { | ||||||
| 			DSPEngineReport* rep = (DSPEngineReport*)message; | 			DSPEngineReport* rep = (DSPEngineReport*)message; | ||||||
| 			m_sampleRate = rep->getSampleRate(); | 			m_sampleRate = rep->getSampleRate(); | ||||||
| 			m_centerFrequency = rep->getCenterFrequency(); | 			m_centerFrequency = rep->getCenterFrequency(); | ||||||
| 			//qDebug("SampleRate:%d, CenterFrequency:%llu", rep->getSampleRate(), rep->getCenterFrequency());
 | 			qDebug("SampleRate:%d, CenterFrequency:%llu", rep->getSampleRate(), rep->getCenterFrequency()); | ||||||
| 			updateCenterFreqDisplay(); | 			updateCenterFreqDisplay(); | ||||||
| 			updateSampleRate(); | 			updateSampleRate(); | ||||||
| 			message->completed(); | 			message->completed(); | ||||||
|  | |||||||
| @ -260,7 +260,7 @@ void PluginManager::loadPlugins(const QDir& dir) | |||||||
| 		QPluginLoader* loader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName)); | 		QPluginLoader* loader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName)); | ||||||
| 		PluginInterface* plugin = qobject_cast<PluginInterface*>(loader->instance()); | 		PluginInterface* plugin = qobject_cast<PluginInterface*>(loader->instance()); | ||||||
| 		if(loader->isLoaded()) | 		if(loader->isLoaded()) | ||||||
| 			qDebug("loaded plugin %s", qPrintable(fileName)); | 			qWarning("loaded plugin %s", qPrintable(fileName)); | ||||||
| 		if(plugin != NULL) { | 		if(plugin != NULL) { | ||||||
| 			m_plugins.append(Plugin(fileName, loader, plugin)); | 			m_plugins.append(Plugin(fileName, loader, plugin)); | ||||||
| 		} else { | 		} else { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user