summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2018-03-23 07:58:18 +0100
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2018-03-23 09:36:35 +0100
commit7ec935e03f13baa899ab62f5c8348eec5ca35e5c (patch)
tree8f1456d7945b75f0d514162eb904df7f71903516 /rtemsbsd/include/rtems
parentSilence rtems_bsd_ifconfig() (diff)
downloadrtems-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')
-rwxr-xr-xrtemsbsd/include/rtems/bsd/bsd.h9
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