aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-04 17:13:36 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-04 17:58:46 +0200
commit8576477de1c5306aad8f15813b49ecf965b5cd2e (patch)
treec58e67fc80e71b489cac21780e8332d2ab83fa22 /include
parenta52c78dd3e9d7630772888db645208a86f339f2f (diff)
bts-trx: trx_if.c: Introduce logging macro LOGPPHI
This way we unify format. We take the chance to add related information to some log messages which were not printing that information (and was confusing when using more than one phy instance). Change-Id: I5b17a01638ade9a6c41da73e550d5947fa92f568
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/phy_link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h
index 812f1865..273103c6 100644
--- a/include/osmo-bts/phy_link.h
+++ b/include/osmo-bts/phy_link.h
@@ -173,3 +173,5 @@ static inline struct phy_instance *trx_phy_instance(const struct gsm_bts_trx *tr
}
int bts_model_phy_link_open(struct phy_link *plink);
+
+#define LOGPPHI(pinst, section, lvl, fmt, args...) LOGP(section, lvl, "%s: " fmt, phy_instance_name(pinst), ##args)