Skip to content

Commit a74b0ae

Browse files
committed
[libc][time]优化警告输出内容
1 parent 169b090 commit a74b0ae

File tree

1 file changed

+2
-2
lines changed
  • components/libc/compilers/common

1 file changed

+2
-2
lines changed

components/libc/compilers/common/time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <rtdevice.h>
3030
#endif
3131

32-
#define DBG_TAG "TIME"
32+
#define DBG_TAG "time"
3333
#define DBG_LVL DBG_INFO
3434
#include <rtdbg.h>
3535

@@ -242,7 +242,7 @@ char* asctime_r(const struct tm *t, char *buf)
242242
/* Checking input validity */
243243
if (rt_strlen(days) <= (t->tm_wday << 2) || rt_strlen(months) <= (t->tm_mon << 2))
244244
{
245-
LOG_W("The input exceeded the limit, please check it.");
245+
LOG_W("asctime_r: the input parameters exceeded the limit, please check it.");
246246
*(int*) buf = *(int*) days;
247247
*(int*) (buf + 4) = *(int*) months;
248248
num2str(buf + 8, t->tm_mday);

0 commit comments

Comments
 (0)