more error string clean up

This commit is contained in:
hathach
2018-03-28 13:41:00 +07:00
parent 604275341e
commit 111065c042
5 changed files with 17 additions and 52 deletions

View File

@@ -61,7 +61,7 @@
//--------------------------------------------------------------------+
#if TUSB_CFG_DEBUG >= 1
// #define _VERIFY_MESS(format, ...) cprintf("[%08ld] %s: %d: verify failed\n", get_millis(), __func__, __LINE__)
#define _VERIFY_MESS(_status) printf("%s: %d: verify failed, error = %s\n", __PRETTY_FUNCTION__, __LINE__, TUSB_ErrorStr[_status]);
#define _VERIFY_MESS(_status) printf("%s: %d: verify failed, error = %s\n", __PRETTY_FUNCTION__, __LINE__, tusb_strerr[_status]);
#define _ASSERT_MESS() printf("%s: %d: assert failed\n", __PRETTY_FUNCTION__, __LINE__);
#else
#define _VERIFY_MESS(_status)