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:
Ying Liu
2018-07-10 19:59:31 -07:00
committed by Jack Ren
parent fd81655e60
commit 8c43ad54bf
10 changed files with 28 additions and 15 deletions

View File

@@ -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);