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 #endif -#define DBG_TAG "TIME" +#define DBG_TAG "time" #define DBG_LVL DBG_INFO #include @@ -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);