lib: added blanks between operators

To adhere to general code style, I added some
blanks around operators

Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
Hess Nathan 2024-05-17 15:50:24 +02:00 committed by Anas Nashif
parent 974bad6242
commit 5120744c8d
2 changed files with 3 additions and 3 deletions

View file

@ -66,8 +66,8 @@ static void heap_print_info(struct z_heap *h, bool dump_chunks)
overhead = total - free_bytes - allocated_bytes;
printk("\n%zd free bytes, %zd allocated bytes, overhead = %zd bytes (%zd.%zd%%)\n",
free_bytes, allocated_bytes, overhead,
(1000 * overhead + total/2) / total / 10,
(1000 * overhead + total/2) / total % 10);
(1000 * overhead + total / 2) / total / 10,
(1000 * overhead + total / 2) / total % 10);
}
void sys_heap_print_info(struct sys_heap *heap, bool dump_chunks)

View file

@ -53,7 +53,7 @@ int atoi(const char *s)
}
/* Compute n as a negative number to avoid overflow on INT_MIN */
while (isdigit((unsigned char)*s) != 0) {
n = 10*n - (*s++ - '0');
n = 10 * n - (*s++ - '0');
}
return neg ? n : -n;
}