Strip 'stdout' & 'stderr' from ngspice log
This commit is contained in:
parent
90b6112c5d
commit
6580a355ab
|
@ -324,7 +324,14 @@ int NGSPICE::cbSendChar( char* what, int id, void* user )
|
||||||
NGSPICE* sim = reinterpret_cast<NGSPICE*>( user );
|
NGSPICE* sim = reinterpret_cast<NGSPICE*>( user );
|
||||||
|
|
||||||
if( sim->m_reporter )
|
if( sim->m_reporter )
|
||||||
|
{
|
||||||
|
// strip stdout/stderr from the line
|
||||||
|
if( ( strncasecmp( what, "stdout ", 7 ) == 0 )
|
||||||
|
|| ( strncasecmp( what, "stderr ", 7 ) == 0 ) )
|
||||||
|
what += 7;
|
||||||
|
|
||||||
sim->m_reporter->Report( what );
|
sim->m_reporter->Report( what );
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue