zephyr/tests/kernel
Nicolas Pitre 5a384b9ea8 lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats
There might be a sign extension when a long is promoted to
int_value_type and the former type is smaller than the later.
This produces the wrong output if the specified format is unsigned.

Let's avoid this problem by handling signed and unsigned cases
explicitly. When the type already matches int_value_type then the
compiler is smart enough to recognize the redundancy and removes
unneeded duplications automatically, meaning that the code will stay
small when code size matters.

A similar issue also existed in the restricted %llu case.
The fix is the same as above.

Those fixes exposed wrong results in the printk.c test with %llx
so fix that as well.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-09-02 19:37:06 -04:00
..
common lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats 2021-09-02 19:37:06 -04:00
condvar/condvar_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
context tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
device pm: device: Remove PM_DEVICE_STATE_FORCE_SUSPEND 2021-08-27 17:47:10 -04:00
early_sleep tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fatal tests: fatal/exception: pin stack before stack overflow test 2021-08-26 21:16:22 -04:00
fifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fpu_sharing cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
gen_isr_table tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
interrupt tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
lifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mbox tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_heap tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_protect subsys/random: change parameters for timer-based PRNG 2021-08-30 09:32:36 -04:00
mem_slab tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
msgq tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mutex cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pending cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pipe cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
poll cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
profiling/profiling_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
queue cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sched tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
semaphore cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sleep cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
smp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
spinlock cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
stack/stack cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
threads cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
tickless/tickless_concept cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
timer tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
workq tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
xip tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00