On 22/03/2018 18:22, Christian Mauderer wrote: > 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). >
Nice, I can see the need. We really need a manual for libbsd or a section in the User Manual. Is it worth adding something to libbsd.txt until we have somewhere so we do not forget to document this? Ok to push. Thanks Chris _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel