load modules common to all linux revisions
[cinitramfs.git] / out.h
blob7f272e25a25b4da12ad81f13b6eeff1bba4187af
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 gmail dot com>
6 *******************************************************************************/
7 #ifndef QUIET
8 #include <stdarg.h>
9 #include <ulinux/utils/ascii/string/vsprintf.h>
11 #define PRE "initramfs:"
13 #ifdef INIT_C
14 ulinux_u8 *g_dprintf_buf;
15 #else
16 extern ulinux_u8 *g_dprintf_buf;
17 #endif
19 #define DPRINTF_BUF_SZ 1024
20 #define OUT(f,...) ulinux_dprintf(0,g_dprintf_buf,DPRINTF_BUF_SZ,\
21 (ulinux_u8*)(f),##__VA_ARGS__)
22 #else
23 #define PRE
24 #define OUT(f,...)
25 #endif
26 #endif