kernel: some boottime sanitychecks
[minix.git] / include / ddekit / printf.h
blob8e6182c9e666a337e22a21406a1b9ec51dcd4f38
1 #ifndef _DDEKIT_PRINTF_H
2 #define _DDEKIT_PRINTF_H
4 #include <ddekit/ddekit.h>
5 #include <stdarg.h>
7 /** Print message.
8 * \ingroup DDEKit_util
9 */
10 int ddekit_print(const char *);
12 /** Print message with format.
13 * \ingroup DDEKit_util
15 int ddekit_printf(const char *fmt, ...);
17 /** Print message with format list.
18 * \ingroup DDEKit_util
20 int ddekit_vprintf(const char *fmt, va_list va);
22 /** Log function and message.
23 * \ingroup DDEKit_util
25 #define ddekit_log(doit, msg...) \
26 do { \
27 if (doit) { \
28 ddekit_printf("%s(): ", __func__); \
29 ddekit_printf(msg); \
30 ddekit_printf("\n"); \
31 } \
32 } while(0);
34 #endif