stdout and stderr are getting mixed up?

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jun 22 05:24:58 UTC 2017


On 22/06/17 07:20, Sebastian Huber wrote:

> On 22/06/17 07:14, Chris Johns wrote:
>
>>> If you need a proper log, then you have to ensure this at 
>>> application level.
>>>
>> What about this post:
>>
>> https://groups.google.com/d/msg/comp.programming.threads/1-bU71nYgqw/HSfD8625QzkJ 
>>
>>
>> It would imply a line should not be broken up. I do not know.
>
> You have thread-local stdio streams in Newlib that use a common output 
> device by default.
>

For the kernel-space log functions and syslog() in libbsd I added a lock 
to serialize the output by default:

https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-kernel-vprintf.c?id=9db59c71ad8bc1f1852838d147a29467a1cd6e3d#n81

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list