diff --git a/platform/fwk/platform_trace.c b/platform/fwk/platform_trace.c index 64a92435899b2b41120b0f7fd135b37be80bc4a8..27188c4e6ad0e71a43f83eb55e14b56cff673b2a 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; }