summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-09-27 07:40:24 -0400
committerMeco Man <[email protected]>2021-09-27 07:40:24 -0400
commita74b0ae3884ef4275e3b7949072492e3cacdf486 (patch)
tree976894a0dc8ae923d59d2c90c2187fa619cbb2f3 /components
parent169b09004ee9ed15c1e8cb15c7d2fe3042895f29 (diff)
[libc][time]优化警告输出内容
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 840629f973..c54ec2aac5 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -29,7 +29,7 @@
#include <rtdevice.h>
#endif
-#define DBG_TAG "TIME"
+#define DBG_TAG "time"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
@@ -242,7 +242,7 @@ char* asctime_r(const struct tm *t, char *buf)
/* Checking input validity */
if (rt_strlen(days) <= (t->tm_wday << 2) || rt_strlen(months) <= (t->tm_mon << 2))
{
- LOG_W("The input exceeded the limit, please check it.");
+ LOG_W("asctime_r: the input parameters exceeded the limit, please check it.");
*(int*) buf = *(int*) days;
*(int*) (buf + 4) = *(int*) months;
num2str(buf + 8, t->tm_mday);