2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
21 static inline void panic(const char *format
, ...) __check_format_printf(1, 2);
22 static inline void syslog_panic(const char *format
,
23 ...) __check_format_printf(1, 2);
24 static inline void syslog_maybe(int may
, int priority
,
25 const char *format
, ...) __check_format_printf(3, 4);
26 static inline void whine(const char *format
, ...) __check_format_printf(1, 2);
27 static inline void verbose_l1(const char *format
,
28 ...) __check_format_printf(1, 2);
29 static inline void verbose_l2(const char *format
,
30 ...) __check_format_printf(1, 2);
32 static inline void die(void)
37 static inline void _die(void)
42 static inline void panic(const char *format
, ...)
47 vfprintf(stderr
, format
, vl
);
53 static inline void syslog_panic(const char *format
, ...)
58 vsyslog(LOG_ERR
, format
, vl
);
64 static inline void syslog_maybe(int may
, int priority
, const char *format
, ...)
70 vsyslog(priority
, format
, vl
);
75 static inline void whine(const char *format
, ...)
80 vfprintf(stderr
, format
, vl
);
84 extern int verbose_level
;
86 static inline void verbose_l1(const char *format
, ...)
90 if (verbose_level
< 1)
94 vfprintf(stderr
, format
, vl
);
98 static inline void verbose_l2(const char *format
, ...)
102 if (verbose_level
< 2)
105 va_start(vl
, format
);
106 vfprintf(stderr
, format
, vl
);