logging: Fix 10.4 violations
Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
9285b4c6bf
commit
d0dac69fa9
3 changed files with 8 additions and 8 deletions
|
@ -381,7 +381,7 @@ static int cmd_log_strdup_utilization(const struct shell *shell,
|
|||
uint32_t buf_cnt = log_get_strdup_pool_utilization();
|
||||
uint32_t buf_size = log_get_strdup_longest_string();
|
||||
uint32_t percent = CONFIG_LOG_STRDUP_BUF_COUNT ?
|
||||
100 * buf_cnt / CONFIG_LOG_STRDUP_BUF_COUNT : 0;
|
||||
buf_cnt * 100U / CONFIG_LOG_STRDUP_BUF_COUNT : 0U;
|
||||
|
||||
shell_print(shell,
|
||||
"Maximal utilization of the buffer pool: %d / %d (%d %%).",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue