Wrapping left-over debug printf() in DBG()

This commit is contained in:
Seth Hillbrand 2018-03-30 09:43:17 -07:00
parent 2e0b75c058
commit 7d3d9f7188
3 changed files with 10 additions and 8 deletions

View File

@ -78,7 +78,7 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
if( prevNet >= 0 && net != prevNet )
{
printf("prev %d net %d\n", net, prevNet );
DBG( printf("prev %d net %d\n", net, prevNet ) );
m_haveUniqueNet = false;
break;
}
@ -391,7 +391,7 @@ bool DIALOG_TRACK_VIA_PROPERTIES::Apply( COMMIT& aCommit )
if ( m_NetComboBox->IsUniqueNetSelected() )
{
printf("snc %d\n", m_NetComboBox->GetSelectedNet());
DBG( printf( "snc %d\n", m_NetComboBox->GetSelectedNet() ) );
t->SetNetCode( m_NetComboBox->GetSelectedNet() );
}
@ -482,7 +482,7 @@ bool DIALOG_TRACK_VIA_PROPERTIES::Apply( COMMIT& aCommit )
if ( m_NetComboBox->IsUniqueNetSelected() )
{
printf("snc %d\n", m_NetComboBox->GetSelectedNet());
DBG( printf( "snc %d\n", m_NetComboBox->GetSelectedNet() ) );
v->SetNetCode( m_NetComboBox->GetSelectedNet() );
}

View File

@ -73,7 +73,7 @@ PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArgl
if( PyErr_Occurred() )
{
wxMessageBox( PyErrStringWithTraceback(),
wxT( "Exception on python action plugin code" ),
_( "Exception on python action plugin code" ),
wxICON_ERROR | wxOK );
}
@ -85,7 +85,8 @@ PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArgl
}
else
{
printf( "method not found, or not callable: %s\n", aMethod );
wxString msg = wxString::Format(_( "Method \"%s\" not found, or not callable" ), aMethod );
wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
}
if( pFunc )
@ -300,7 +301,7 @@ void PCB_EDIT_FRAME::OnActionPlugin( wxCommandEvent& aEvent )
default:
wxString msg;
msg.Printf( wxT( "(PCB_EDIT_FRAME::OnActionPlugin) needs work: "
msg.Printf( _( "(PCB_EDIT_FRAME::OnActionPlugin) needs work: "
"BOARD_ITEM type (%d) not handled" ),
item->Type() );
wxFAIL_MSG( msg );

View File

@ -66,7 +66,7 @@ PyObject* PYTHON_FOOTPRINT_WIZARD::CallMethod( const char* aMethod, PyObject* aA
{
#if 1 // defined(DEBUG)
wxMessageBox( PyErrStringWithTraceback(),
wxT( "Exception on python footprint wizard code" ),
_( "Exception on python footprint wizard code" ),
wxICON_ERROR | wxOK );
#endif
}
@ -79,7 +79,8 @@ PyObject* PYTHON_FOOTPRINT_WIZARD::CallMethod( const char* aMethod, PyObject* aA
}
else
{
printf( "method not found, or not callable: %s\n", aMethod );
wxString msg = wxString::Format(_( "Method \"%s\" not found, or not callable" ), aMethod );
wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
}
if( pFunc )