aboutsummaryrefslogtreecommitdiffstats
path: root/gtp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-09-25 10:35:34 +0200
committerMax <msuraev@sysmocom.de>2017-09-25 10:35:34 +0200
commit6a21527a2d417eca602cd0af3461dfa285da8767 (patch)
tree4802cd0e99c05242b0e22eb4c3026cb08cc9b939 /gtp
parent1a8bc9839a69566e756c691ebd2d676082838c52 (diff)
Move extended PDP logging macro to header
It might be useful for any user of libgtp who uses libosmocore so let's make generalized version of it available as part of installable header. Change-Id: I79aba10ef989384a28f059c30899e65c771ae5e1 Related: SYS#3610
Diffstat (limited to 'gtp')
-rw-r--r--gtp/pdp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtp/pdp.h b/gtp/pdp.h
index f8b0df8..106d544 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -17,6 +17,9 @@
struct gsn_t;
+#define LOGPDPX(ss, level, pdp, fmt, args...) \
+ LOGP(ss, level, "PDP(%s:%u): " fmt, imsi_gtp2str(&(pdp)->imsi), (pdp)->nsapi, ## args)
+
#define PDP_MAX 1024 /* Max number of PDP contexts */
#define PDP_MAXNSAPI 16 /* Max number of NSAPI */