From d5cdda46aceaef18246776d5ccd9262148618538 Mon Sep 17 00:00:00 2001 From: fly1ngpengu1ns Date: Tue, 4 Apr 2023 03:19:41 +0000 Subject: [PATCH] Modified a judgment for a "uint8_t" Signed-off-by: fly1ngpengu1ns --- platform/fwk/platform_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/fwk/platform_trace.c b/platform/fwk/platform_trace.c index 64a9243..27188c4 100644 --- a/platform/fwk/platform_trace.c +++ b/platform/fwk/platform_trace.c @@ -65,7 +65,7 @@ void PlatformTraceAddUintMsg(int module, int moduleFun, uint infos[], uint8_t si return; } - if ((size <= 0) || (size > PLATFORM_TRACE_UINT_PARAM_SIZE_MAX)) { + if ((size == 0) || (size > PLATFORM_TRACE_UINT_PARAM_SIZE_MAX)) { HDF_LOGE("PlatformTraceAddUintMsg %hhu size illegal", size); return; } -- Gitee