summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-18 15:08:30 +0700
committerhathach <[email protected]>2012-12-18 15:08:30 +0700
commitec4a3f60488fbd9eaf51c12b1cce79f0a7d3064f (patch)
tree99d3f27558811ef6a5554e45d3c2cfd062e90893 /tinyusb/common
parent50c89192d83ab96c894fd88a9d1ca2887ad43fec (diff)
cleaning
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h
index a10f31995..91b18ee22 100644
--- a/tinyusb/common/common.h
+++ b/tinyusb/common/common.h
@@ -118,7 +118,7 @@
#define ASSERT_MESSAGE(condition, value, message) \
do{\
if (!(condition)) {\
- PRINTF("Assert at %s line %d: %s\n", __PRETTY_FUNCTION__, __LINE__, message); \
+ PRINTF("Assert at %s %s line %d: %s\n", __BASE_FILE__, __PRETTY_FUNCTION__, __LINE__, message); \
return (value);\
}\
}while(0)
@@ -129,7 +129,7 @@
do{\
TUSB_Error_t status = (TUSB_Error_t)(sts);\
if (tERROR_NONE != status) {\
- PRINTF("Assert at %s line %d: %s %s\n", __func__, __LINE__, TUSB_ErrorStr[status], message); \
+ PRINTF("Assert at %s line %d: %s %s\n", __BASE_FILE__, __PRETTY_FUNCTION__, __LINE__, TUSB_ErrorStr[status], message); \
return status;\
}\
}while(0)