From 61c3da0f4b90aa7ff503708699c0beb1400dcd98 Mon Sep 17 00:00:00 2001 From: liuyifei Date: Wed, 26 Feb 2025 08:07:33 +0000 Subject: [PATCH] =?UTF-8?q?hilog=5Flite=E5=91=8A=E8=AD=A6=E6=B8=85?= =?UTF-8?q?=E9=9B=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyifei --- frameworks/mini/hiview_output_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/mini/hiview_output_log.c b/frameworks/mini/hiview_output_log.c index f926251..ce1afb6 100644 --- a/frameworks/mini/hiview_output_log.c +++ b/frameworks/mini/hiview_output_log.c @@ -399,13 +399,13 @@ static int32 LogCommonFmt(char *outStr, int32 outStrLen, const HiLogCommon *comm { int32 ret; time_t time; - uint32 month, day, hour, min, sec; + int month, day, hour, min, sec; uint8_t level; struct tm nowTime = {0}; time = commonContentPtr->time; localtime_r(&time, &nowTime); - month = (uint32)(nowTime.tm_mon + 1); + month = nowTime.tm_mon + 1; day = nowTime.tm_mday; hour = nowTime.tm_hour; min = nowTime.tm_min; -- Gitee