gatppp: Add a debug macro

This commit is contained in:
Denis Kenzior 2011-02-26 00:13:42 -06:00
parent 5ffe6f7beb
commit 802962adbc
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@
#define PPP_IP_PROTO 0x0021
#define MD5 5
#define DBG(p, fmt, arg...) do { \
char *str = g_strdup_printf("%s:%s() " fmt, __FILE__, \
__FUNCTION__ , ## arg); \
ppp_debug(p, str); \
g_free(str); \
} while (0)
struct ppp_chap;
struct ppp_net;