diff --git a/frameworks/mini/hiview_output_log.c b/frameworks/mini/hiview_output_log.c index d557ae1dd9dc67dc2bc0d0e7fa266baac0bead01..b1924fc489968107820563875f5ce641e5c0e202 100755 --- a/frameworks/mini/hiview_output_log.c +++ b/frameworks/mini/hiview_output_log.c @@ -497,7 +497,7 @@ static int32 LogValuesFmtHash(char *desStrPtr, int32 desLen, const HiLogContent for (uint32 i = 0; i < paraNum && i < LOG_MULTI_PARA_MAX; i++) { len = snprintf_s(&desStrPtr[outLen], desLen - outLen, desLen - outLen - 1, - "%u ", logContentPtr->values[i]); + "%d ", (int32)logContentPtr->values[i]); if (len < 0) { return len; }