aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-01-12 12:59:52 +0100
committerHarald Welte <laforge@osmocom.org>2020-01-12 13:31:35 +0100
commitb5af0991b39f5dc5e90cd5e36379631d389816be (patch)
tree287832fa4ce3911fa5d43bddf249a66cb73a4ad1 /include/osmocom
parent510ae993a035b686d0f36743c853d333436b225f (diff)
introduce and use logging macros with context on E1 line / timeslot
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/abis/e1_input.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index e6d5154..de1c504 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -14,6 +14,12 @@
#define NUM_E1_TS 32
#define E1INP_USE_DEFAULT (-1)
+#define LOGPITS(e1ts, ss, level, fmt, args ...) \
+ LOGP(ss, level, "E1TS(%u:%u) " fmt, (e1ts)->line->num, (e1ts)->num, ## args)
+
+#define LOGPIL(e1l, ss, level, fmt, args ...) \
+ LOGP(ss, level, "E1L(%u) " fmt, (e1l)->num, ## args)
+
enum e1inp_sign_type {
E1INP_SIGN_NONE,
E1INP_SIGN_OML,