newlib: libc-hooks: Print "exit" message with newline
Calling POSIX exit() function in Zephyr w/newlib leads to printing "exit" to stdout followed by infinite loop. That message was printed without a newline though, leading to confusing artifacts in the console output. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
d1bd3a6fe7
commit
a85321229a
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ FUNC_ALIAS(_fstat, fstat, int);
|
|||
|
||||
void _exit(int status)
|
||||
{
|
||||
_write(1, "exit", 4);
|
||||
_write(1, "exit\n", 5);
|
||||
while (1) {
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue