mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV: add the missing brackets to loop body
MISRA-C requires the use of brackets, even when there is only one statement in the loop body. Signed-off-by: Ying Liu <ying2.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -170,8 +170,9 @@ TRACE_16STR(uint32_t evid, const char name[])
|
||||
|
||||
len = strnlen_s(name, 20U);
|
||||
len = (len > 16U) ? 16U : len;
|
||||
for (i = 0U; i < len; i++)
|
||||
for (i = 0U; i < len; i++) {
|
||||
entry.payload.str[i] = name[i];
|
||||
}
|
||||
|
||||
entry.payload.str[15] = 0;
|
||||
_trace_put(cpu_id, evid, 16U, &entry);
|
||||
|
Reference in New Issue
Block a user