Skip to content

Commit fe0e6a2

Browse files
authored
Merge pull request RT-Thread#3736 from SantaPasserby/fix_sysylog_formater
syslog_formater调用rt_snprintf多了个参数。
2 parents d180c16 + d5e03ad commit fe0e6a2

File tree

1 file changed

+2
-2
lines changed
  • components/utilities/ulog/syslog

1 file changed

+2
-2
lines changed

components/utilities/ulog/syslog/syslog.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ RT_WEAK rt_size_t syslog_formater(char *log_buf, int level, const char *tag, rt_
192192

193193
#ifdef ULOG_OUTPUT_LEVEL
194194
rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, "<%d>%s%3d %02d:%02d:%02d", level,
195-
get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, rt_tick_get() % 1000);
195+
get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
196196
#else
197197
rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, "%s%3d %02d:%02d:%02d",
198-
get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, rt_tick_get() % 1000);
198+
get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
199199
#endif /* ULOG_OUTPUT_LEVEL */
200200

201201
log_len += rt_strlen(log_buf + log_len);

0 commit comments

Comments
 (0)