zephyr/tests
Nicolas Pitre 533dcaf374 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-03 08:17:19 -04:00
..
application_development/gen_inc_file
arch boards: up_squared: remove 32bit variant 2021-06-01 14:06:56 -05:00
benchmarks tests/benchmarks: add dynamic memory allocation measurement 2021-08-03 16:17:15 -04:00
bluetooth tests: bluetooth: bsim: Updated advx test to verify previous sync data 2021-06-01 16:50:41 +02:00
boards
crypto
drivers tests: i2s_speed: Increase the RX buffer count 2021-06-03 14:14:24 -05:00
kernel lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats 2021-09-03 08:17:19 -04:00
lib json: fix parsing first array-array element 2021-08-30 09:15:58 -04:00
misc/test_build
net tests: net: getaddrinfo: Increase newlib heap size 2021-06-02 08:50:45 -05:00
posix tests: posix: common: clock: exclude ehl_crb from test posix realtime 2021-06-02 08:49:45 -05:00
subsys tests: cpp: libcxx: Test with full and nano variants of newlib 2021-06-08 14:36:01 -05:00
unit lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats 2021-09-03 08:17:19 -04:00
ztest tests: error_hook skipping div-by-0 test on cortex M0 M0+ 2021-05-28 11:46:09 -05:00