From a4868a0e5a22d78e79374db0450a9b481e915b53 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 11 Aug 2016 14:41:10 +0200 Subject: [PATCH] Minor fixes to debug output --- eeschema/sim/ngspice.cpp | 14 +++++--------- eeschema/sim/sim_plot_panel.cpp | 2 -- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 4e74896702..a927db5d93 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -88,9 +88,7 @@ bool NGSPICE::LoadNetlist( const string& aNetlist ) { char line[1024]; ss.getline( line, sizeof(line) ); - lines[n++] = strdup(line); - wxLogDebug( "l '%s'\n", line ); } lines[n] = NULL; @@ -125,18 +123,18 @@ void NGSPICE::dump() for( int i = 0; plots[i]; ++i ) { - wxLogDebug( "-> plot : %s\n", plots[i] ); + wxLogDebug( "-> plot : %s", plots[i] ); char** vecs = m_ngSpice_AllVecs( plots[i] ); for( int j = 0; vecs[j]; j++ ) { - wxLogDebug( " - vector %s\n", vecs[j] ); + wxLogDebug( " - vector %s", vecs[j] ); vector_info* vi = m_ngGet_Vec_Info( vecs[j] ); - wxLogDebug( " - v_type %x\n", vi->v_type ); - wxLogDebug( " - v_flags %x\n", vi->v_flags ); - wxLogDebug( " - v_length %d\n", vi->v_length ); + wxLogDebug( " - v_type %x", vi->v_type ); + wxLogDebug( " - v_flags %x", vi->v_flags ); + wxLogDebug( " - v_length %d", vi->v_length ); } } } @@ -203,8 +201,6 @@ int NGSPICE::cbSendChar( char* what, int id, void* user ) { NGSPICE* sim = reinterpret_cast( user ); - wxLogDebug( "sim %p cr %p\n", sim, sim->m_consoleReporter ); - if( sim->m_consoleReporter ) sim->m_consoleReporter->Report( what ); diff --git a/eeschema/sim/sim_plot_panel.cpp b/eeschema/sim/sim_plot_panel.cpp index 2bac6162be..eb53800fcc 100644 --- a/eeschema/sim/sim_plot_panel.cpp +++ b/eeschema/sim/sim_plot_panel.cpp @@ -28,8 +28,6 @@ static SIM_PLOT_PANEL* panel = NULL; static int drawPlotFunc( mglGraph* aGraph ) { - printf( "DrawPlot [%lu traces]!\n", panel->m_traces.size() ); - aGraph->Clf(); //aGraph->SetRanges(-10e-3,10e-3,-2,2); aGraph->Axis( "x" );