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:
parent
974bad6242
commit
5120744c8d
2 changed files with 3 additions and 3 deletions
|
|
@ -66,8 +66,8 @@ static void heap_print_info(struct z_heap *h, bool dump_chunks)
|
||||||
overhead = total - free_bytes - allocated_bytes;
|
overhead = total - free_bytes - allocated_bytes;
|
||||||
printk("\n%zd free bytes, %zd allocated bytes, overhead = %zd bytes (%zd.%zd%%)\n",
|
printk("\n%zd free bytes, %zd allocated bytes, overhead = %zd bytes (%zd.%zd%%)\n",
|
||||||
free_bytes, allocated_bytes, overhead,
|
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)
|
void sys_heap_print_info(struct sys_heap *heap, bool dump_chunks)
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ int atoi(const char *s)
|
||||||
}
|
}
|
||||||
/* Compute n as a negative number to avoid overflow on INT_MIN */
|
/* Compute n as a negative number to avoid overflow on INT_MIN */
|
||||||
while (isdigit((unsigned char)*s) != 0) {
|
while (isdigit((unsigned char)*s) != 0) {
|
||||||
n = 10*n - (*s++ - '0');
|
n = 10 * n - (*s++ - '0');
|
||||||
}
|
}
|
||||||
return neg ? n : -n;
|
return neg ? n : -n;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue