Minor fixes to debug output

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:10 +02:00
parent b6eab191d0
commit a4868a0e5a
2 changed files with 5 additions and 11 deletions

View File

@ -88,9 +88,7 @@ bool NGSPICE::LoadNetlist( const string& aNetlist )
{ {
char line[1024]; char line[1024];
ss.getline( line, sizeof(line) ); ss.getline( line, sizeof(line) );
lines[n++] = strdup(line); lines[n++] = strdup(line);
wxLogDebug( "l '%s'\n", line );
} }
lines[n] = NULL; lines[n] = NULL;
@ -125,18 +123,18 @@ void NGSPICE::dump()
for( int i = 0; plots[i]; ++i ) 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] ); char** vecs = m_ngSpice_AllVecs( plots[i] );
for( int j = 0; vecs[j]; j++ ) 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] ); vector_info* vi = m_ngGet_Vec_Info( vecs[j] );
wxLogDebug( " - v_type %x\n", vi->v_type ); wxLogDebug( " - v_type %x", vi->v_type );
wxLogDebug( " - v_flags %x\n", vi->v_flags ); wxLogDebug( " - v_flags %x", vi->v_flags );
wxLogDebug( " - v_length %d\n", vi->v_length ); wxLogDebug( " - v_length %d", vi->v_length );
} }
} }
} }
@ -203,8 +201,6 @@ int NGSPICE::cbSendChar( char* what, int id, void* user )
{ {
NGSPICE* sim = reinterpret_cast<NGSPICE*>( user ); NGSPICE* sim = reinterpret_cast<NGSPICE*>( user );
wxLogDebug( "sim %p cr %p\n", sim, sim->m_consoleReporter );
if( sim->m_consoleReporter ) if( sim->m_consoleReporter )
sim->m_consoleReporter->Report( what ); sim->m_consoleReporter->Report( what );

View File

@ -28,8 +28,6 @@ static SIM_PLOT_PANEL* panel = NULL;
static int drawPlotFunc( mglGraph* aGraph ) static int drawPlotFunc( mglGraph* aGraph )
{ {
printf( "DrawPlot [%lu traces]!\n", panel->m_traces.size() );
aGraph->Clf(); aGraph->Clf();
//aGraph->SetRanges(-10e-3,10e-3,-2,2); //aGraph->SetRanges(-10e-3,10e-3,-2,2);
aGraph->Axis( "x" ); aGraph->Axis( "x" );