fix ipv6 only build
[syncsm.git] / perr.h
blob6b73d3e06f341d75c9f17c00b0720b85498ef628
1 #ifndef PERR_H
2 #define PERR_H
3 /*
4 * this code is protected by the GNU affero GPLv3 license
5 * author:Sylvain BERTRAND
6 */
7 #include "namespace/ulinux.h"
8 /* secure a 0 terminating byte */
9 #define PERR(fmt,...) dprintf(2, &syncsm_dprint_buf[0], CONFIG_BUFSIZ - 1, fmt, ##__VA_ARGS__)
10 #define CSTRLEN(cstr) (sizeof(cstr) - 1)
11 static u8 syncsm_dprint_buf[CONFIG_BUFSIZ];
12 #define CLEANUP
13 #include "namespace/ulinux.h"
14 #undef CLEANUP
15 #endif