fix build error when ENABLE_DEBUG is defined
Merge pull request #1515 from mynz/master

fix build error when ENABLE_DEBUG is defined