waitid WALL and build script convolution removal
[muinit.git] / out.h
blobb4aa34517955f029c147f75867b53c191f4400fe
1 #ifndef OUT_H
2 #define OUT_H
3 /*
4 * this code is protected by the GNU affero GPLv3
5 * author:Sylvain BERTRAND <sylvain.bertrand AT legeek DOT net>
6 */
7 #ifndef QUIET
8 #include <stdarg.h>
9 #include <ulinux/utils/mem.h>
10 #include <ulinux/utils/ascii/string/vsprintf.h>
12 #define PRE "muinit:"
13 #define DPRINTF_BUF_SZ 1024
15 #ifdef INIT_C
16 static ulinux_u8 g_dprintf_buf[DPRINTF_BUF_SZ];
17 #else
18 extern ulinux_u8 *g_dprintf_buf;
19 #endif
21 #define OUT(f, ...) ulinux_dprintf(0, g_dprintf_buf, DPRINTF_BUF_SZ, (ulinux_u8*)(f), ##__VA_ARGS__)
22 #else
23 #define PRE
24 #define OUT(f, ...)
25 #endif
26 /* vim: set ts=4 sw=0 noexpandtab: */
27 #endif