diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-06-04 17:13:36 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-06-04 17:58:46 +0200 |
commit | 8576477de1c5306aad8f15813b49ecf965b5cd2e (patch) | |
tree | c58e67fc80e71b489cac21780e8332d2ab83fa22 /include/osmo-bts | |
parent | a52c78dd3e9d7630772888db645208a86f339f2f (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/osmo-bts')
-rw-r--r-- | include/osmo-bts/phy_link.h | 2 |
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) |