From: drowe67 Date: Wed, 26 Jul 2017 00:42:56 +0000 (+0000) Subject: cleaned up a few fprintfs X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=60eb740795faff41970bdc098d882ad145aab09d;p=freetel-svn-tracking.git cleaned up a few fprintfs git-svn-id: https://svn.code.sf.net/p/freetel/code@3335 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/freedv-dev/src/dlg_ptt.cpp b/freedv-dev/src/dlg_ptt.cpp index 084589ae..9bff5e15 100644 --- a/freedv-dev/src/dlg_ptt.cpp +++ b/freedv-dev/src/dlg_ptt.cpp @@ -233,7 +233,8 @@ void ComPortsDlg::populatePortList() /* populate Hamlib serial rate combo box */ wxString serialRates[] = {"default", "300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "115200"}; - for(int i=0; iAppend(serialRates[i]); } diff --git a/freedv-dev/src/fdmdv2_main.cpp b/freedv-dev/src/fdmdv2_main.cpp index d5db2277..b0f98ccf 100644 --- a/freedv-dev/src/fdmdv2_main.cpp +++ b/freedv-dev/src/fdmdv2_main.cpp @@ -222,9 +222,6 @@ bool MainApp::OnInit() fprintf(stderr, "plugin: fps not found...\n"); } } - else { - fprintf(stderr, "plugin not found...\n"); - } // Create the main application window @@ -248,7 +245,7 @@ bool MainApp::OnInit() //------------------------------------------------------------------------- int MainApp::OnExit() { - fprintf(stderr, "MainApp::OnExit\n"); + //fprintf(stderr, "MainApp::OnExit\n"); if (m_plugIn) { #ifdef __WXMSW__ FreeLibrary((HMODULE)m_plugInHandle); @@ -301,7 +298,7 @@ MainFrame::MainFrame(wxString plugInName, wxWindow *parent) : TopFrame(plugInNam // sanitise frame position as a first pass at Win32 registry bug - fprintf(g_logfile, "x = %d y = %d w = %d h = %d\n", x,y,w,h); + //fprintf(g_logfile, "x = %d y = %d w = %d h = %d\n", x,y,w,h); if (x < 0 || x > 2048) x = 20; if (y < 0 || y > 2048) y = 20; if (w < 0 || w > 2048) w = 800; @@ -649,7 +646,7 @@ MainFrame::~MainFrame() int w; int h; - fprintf(stderr, "MainFrame::~MainFrame()\n"); + //fprintf(stderr, "MainFrame::~MainFrame()\n"); //fclose(ftest); #ifdef __WXMSW__ fclose(g_logfile); @@ -673,7 +670,7 @@ MainFrame::~MainFrame() if (!IsIconized()) { GetClientSize(&w, &h); GetPosition(&x, &y); - printf("x = %d y = %d w = %d h = %d\n", x,y,w,h); + //fprintf(stderr, "x = %d y = %d w = %d h = %d\n", x,y,w,h); pConfig->Write(wxT("/MainFrame/left"), (long) x); pConfig->Write(wxT("/MainFrame/top"), (long) y); pConfig->Write(wxT("/MainFrame/width"), (long) w); @@ -1284,7 +1281,7 @@ void MainFrame::OnTimer(wxTimerEvent &evt) //------------------------------------------------------------------------- void MainFrame::OnCloseFrame(wxCloseEvent& event) { - fprintf(stderr, "MainFrame::OnCloseFrame()\n"); + //fprintf(stderr, "MainFrame::OnCloseFrame()\n"); Pa_Terminate(); Destroy(); } @@ -2046,7 +2043,7 @@ void MainFrame::OnRecFileFromRadio(wxCommandEvent& event) //------------------------------------------------------------------------- void MainFrame::OnExit(wxCommandEvent& event) { - fprintf(stderr, "MainFrame::OnExit\n"); + //fprintf(stderr, "MainFrame::OnExit\n"); wxUnusedVar(event); #ifdef _USE_TIMER m_plotTimer.Stop(); @@ -2614,7 +2611,7 @@ void MainFrame::startRxStream() if(g_soundCard2InDeviceNum != g_soundCard2OutDeviceNum) two_tx=true; - fprintf(g_logfile, "two_rx: %d two_tx: %d\n", two_rx, two_tx); + //fprintf(stderr, "two_rx: %d two_tx: %d\n", two_rx, two_tx); if(two_rx) m_rxOutPa = new PortAudioWrap(); else