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:
Flavio Ceolin 2021-04-02 16:38:39 -07:00 committed by Anas Nashif
commit 8153666a27
3 changed files with 5 additions and 5 deletions

View file

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