summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-07-06 21:34:48 +0800
committerGitHub <[email protected]>2020-07-06 21:34:48 +0800
commitfe0e6a2d8611be2c20b93b42b01ca20f7165e053 (patch)
tree84e8f3b16388870b129159867dd9ecff81c6446d
parentd180c1611b8e4211c2cfbbbfb5d7d849e59ea8a2 (diff)
parentd5e03ad5d1e237cf60af49ece6a257eab635c32f (diff)
Merge pull request #3736 from SantaPasserby/fix_sysylog_formater
syslog_formater调用rt_snprintf多了个参数。
-rw-r--r--components/utilities/ulog/syslog/syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/utilities/ulog/syslog/syslog.c b/components/utilities/ulog/syslog/syslog.c
index 7586148fbf..872c84d331 100644
--- a/components/utilities/ulog/syslog/syslog.c
+++ b/components/utilities/ulog/syslog/syslog.c
@@ -192,10 +192,10 @@ RT_WEAK rt_size_t syslog_formater(char *log_buf, int level, const char *tag, rt_
#ifdef ULOG_OUTPUT_LEVEL
rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, "<%d>%s%3d %02d:%02d:%02d", level,
- get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, rt_tick_get() % 1000);
+ get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
#else
rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, "%s%3d %02d:%02d:%02d",
- get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, rt_tick_get() % 1000);
+ get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
#endif /* ULOG_OUTPUT_LEVEL */
log_len += rt_strlen(log_buf + log_len);