Closed as not planned
Description
Describe the bug
When using printf together with newlib.c the z_impl_zephyr_write_stdout from lib-hooks.c add an extra carriage return from
zephyr/lib/libc/newlib/libc-hooks.c
Line 202 in f960194
To Reproduce
- Open a hello world sample
- Add CONFIG_NEWLIB_LIBC=y in prj.conf
- add printk("printk 0d0a:\n");
- add printf("printf 0d0d0a:\n");
- compile
- observe print in hex format
Expected behavior
Both print should have the same number of carriage return
Impact
Logs and console output
Environment (please complete the following information):
- OS: (Ubuntu 24.04 and windows 11)
- Toolchain (NCS 2.9, but the functions are the same in zephyr main)
- Commit SHA or Version used
Additional context