[PATCH] vprintf: Add handler that mutes all output.

Christian Mauderer christian.mauderer at embedded-brains.de
Thu Mar 22 07:22:51 UTC 2018

Am 22.03.2018 um 08:17 schrieb Chris Johns:
> On 22/03/2018 17:40, Christian Mauderer wrote:
>> This adds a vprintf handler that can be used to suppress all outputs of
>> the libbsd.
> Why would I want this?
> How would I enable the output so I could see it, for example when working with
> the code?
> Chris

Hello Chris,

in this case, a customer asked for no additional output on the console.
It would be easy to add the same to the application but it might can be
useful for other users too therefore I added it to libbsd.

Note that this is fully optional. It doesn't change the default
behavior. You explicitly have to set the handler using a

    old = rtems_bsd_set_vprintf_handler(rtems_bsd_vprintf_handler_mute);

If you want to re-enable the output sometime later you could just set
the vprintf handler to the old one again (return value of the set function).

With kind regards

Christian Mauderer
embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
email: christian.mauderer at embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

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

More information about the devel mailing list