diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 01baac3c16..604a7caf78 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -472,7 +472,8 @@ void PCB_PARSER::parseGeneralSection() throw( IO_ERROR, PARSE_ERROR ) break; default: // Skip everything but the board thickness. - wxLogDebug( wxT( "Skipping general section token %s " ), GetTokenString( token ) ); + wxLogDebug( wxT( "Skipping general section token %s " ), + GetChars( GetTokenString( token ) ) ); while( ( token = NextTok() ) != T_RIGHT ) { @@ -1676,7 +1677,8 @@ TEXTE_MODULE* PCB_PARSER::parseTEXTE_MODULE() throw( IO_ERROR, PARSE_ERROR ) { wxCHECK_MSG( CurTok() == T_fp_text, NULL, wxString::Format( wxT( "Cannot parse %s as TEXTE_MODULE at line %d, offset %d." ), - GetTokenString( CurTok() ), CurLineNumber(), CurOffset() ) ); + GetChars( GetTokenString( CurTok() ) ), + CurLineNumber(), CurOffset() ) ); T token = NextTok();