summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-26 00:13:42 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-28 16:13:55 -0600
commit802962adbc29e6e0c2c4f64efc9ba1e5f1e29753 (patch)
treeba07ca73cd26afde82d9ef2dd2110c2e716d19fb /gatchat/ppp.h
parent5ffe6f7beb1904a1ee745c925bac65f71e012994 (diff)
downloadofono-802962adbc29e6e0c2c4f64efc9ba1e5f1e29753.tar.bz2
gatppp: Add a debug macro
Diffstat (limited to 'gatchat/ppp.h')
-rw-r--r--gatchat/ppp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gatchat/ppp.h b/gatchat/ppp.h
index 01ab8e03..d2786d74 100644
--- a/gatchat/ppp.h
+++ b/gatchat/ppp.h
@@ -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;