vprintf: Add handler that mutes all output.

This adds a vprintf handler that can be used to suppress all outputs of
the libbsd.
This commit is contained in:
Christian Mauderer
2018-03-23 07:58:18 +01:00
parent d300a34424
commit 7ec935e03f
3 changed files with 43 additions and 0 deletions

View File

@@ -294,6 +294,15 @@ int rtems_bsd_vprintf(int level, const char *fmt, va_list ap);
*/
int rtems_bsd_setlogpriority(const char* priority);
/**
* @brief Set this vprintf handler to suppress all output.
*
* @retval Allways 0.
*
* @see rtems_bsd_vprintf() for the parameters.
*/
int rtems_bsd_vprintf_handler_mute(int level, const char *fmt, va_list ap);
/** @} */
#ifdef __cplusplus