logging: Fix 14.4 guideline violation
The controlling expression of an if statement has to be an essentially boolean type. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
7e91223ae0
commit
8153666a27
3 changed files with 5 additions and 5 deletions
|
@ -620,7 +620,7 @@ void log_output_hexdump(const struct log_output *output,
|
|||
/* Print metadata */
|
||||
print_formatted(output, "%s", metadata);
|
||||
|
||||
while (length) {
|
||||
while (length != 0U) {
|
||||
uint32_t part_len = length > HEXDUMP_BYTES_IN_LINE ?
|
||||
HEXDUMP_BYTES_IN_LINE : length;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue