-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed as not planned
Labels
Stalearea: C LibraryC Standard LibraryC Standard LibrarybugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
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
| int z_impl_zephyr_write_stdout(const void *buffer, int nbytes) |
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
Metadata
Metadata
Assignees
Labels
Stalearea: C LibraryC Standard LibraryC Standard LibrarybugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
