all: Add 'U' suffix when using unsigned variables

Add a 'U' suffix to values when computing and comparing against
unsigned variables.

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
Patrik Flykt 2019-03-26 19:57:45 -06:00 committed by Kumar Gala
commit 24d71431e9
559 changed files with 2331 additions and 2328 deletions

View file

@ -63,7 +63,7 @@ static void shell_tdata_dump(const struct k_thread *thread, void *user_data)
size);
/* Calculate the real size reserved for the stack */
pcnt = ((size - unused) * 100) / size;
pcnt = ((size - unused) * 100U) / size;
tname = k_thread_name_get((struct k_thread *)thread);
@ -104,7 +104,7 @@ static void shell_stack_dump(const struct k_thread *thread, void *user_data)
size);
/* Calculate the real size reserved for the stack */
pcnt = ((size - unused) * 100) / size;
pcnt = ((size - unused) * 100U) / size;
shell_fprintf((const struct shell *)user_data, SHELL_NORMAL,
"0x%08X %-10s (real size %u):\tunused %u\tusage %u / %u (%u %%)\n",