mirror of git://git.sysmocom.de/ofono
gatppp: Add a debug macro
This commit is contained in:
parent
5ffe6f7beb
commit
802962adbc
|
@ -27,6 +27,13 @@
|
||||||
#define PPP_IP_PROTO 0x0021
|
#define PPP_IP_PROTO 0x0021
|
||||||
#define MD5 5
|
#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_chap;
|
||||||
struct ppp_net;
|
struct ppp_net;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue