1bb3820cb49bb19614bc78f3ec2ba3c4a83c05d0
4 #include <sys/socket.h>
10 #include <libubox/uloop.h>
16 extern unsigned int debug_mask
;
25 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
26 #define D(level, format, ...) do { \
27 if (debug_mask & (1 << (DEBUG_ ## level))) \
28 DPRINTF(format, ##__VA_ARGS__); \
31 #define DPRINTF(format, ...) no_debug(0, format, ## __VA_ARGS__)
32 #define D(level, format, ...) no_debug(DEBUG_ ## level, format, ## __VA_ARGS__)
35 static inline void no_debug(int level
, const char *fmt
, ...)
42 extern const char *main_path
;
43 void netifd_restart(void);
44 void netifd_reload(void);