diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-03-23 07:58:18 +0100 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-03-23 09:36:35 +0100 |
commit | 7ec935e03f13baa899ab62f5c8348eec5ca35e5c (patch) | |
tree | 8f1456d7945b75f0d514162eb904df7f71903516 /rtemsbsd/include/rtems/bsd/bsd.h | |
parent | Silence rtems_bsd_ifconfig() (diff) | |
download | rtems-libbsd-7ec935e03f13baa899ab62f5c8348eec5ca35e5c.tar.bz2 |
vprintf: Add handler that mutes all output.
This adds a vprintf handler that can be used to suppress all outputs of
the libbsd.
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/bsd.h')
-rwxr-xr-x | rtemsbsd/include/rtems/bsd/bsd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/bsd.h b/rtemsbsd/include/rtems/bsd/bsd.h index 19428a51..cec14ac4 100755 --- a/rtemsbsd/include/rtems/bsd/bsd.h +++ b/rtemsbsd/include/rtems/bsd/bsd.h @@ -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 |