2 * Lightweight Autonomic Network Architecture
3 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
4 * Swiss federal institute of technology (ETH Zurich)
20 static inline void error_and_die(int status
, char *msg
, ...)
24 vfprintf(stderr
, msg
, vl
);
29 static inline void die(void)
34 static inline void panic(char *msg
, ...)
38 vfprintf(stderr
, msg
, vl
);
43 #define syslog_panic(msg...) \
45 syslog(LOG_ERR, ##msg); \
49 static inline void whine(char *msg
, ...)
53 vfprintf(stderr
, msg
, vl
);
57 #define syslog_whine(msg...) \
59 syslog(LOG_WARNING, ##msg); \
62 static inline void info(char *msg
, ...)
66 vfprintf(stdout
, msg
, vl
);
70 #define syslog_info(msg...) \
72 syslog(LOG_INFO, ##msg); \
75 static inline void BUG(char *msg
, ...)
80 vfprintf(stderr
, msg
, vl
);
85 static inline void BUG_ON(int cond
, char *msg
, ...)
91 vfprintf(stderr
, msg
, vl
);
98 static inline void debug(char *msg
, ...)
102 vfprintf(stderr
, msg
, vl
);
107 static inline void debug(char *msg
, ...)