From f636e6cedd3d1ef0c53daa3320a487751a9cdc35 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 7 Oct 2019 21:20:43 +0200 Subject: LOG_TRANS for CC: always log CC state For all CC type transaction logging, log the current trans->cc.state string for all LOG_TRANS*() logging. Change-Id: I67be12c74c679ce684f8c0b9b4e0d96299849dc6 --- include/osmocom/msc/transaction.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmocom/msc/transaction.h b/include/osmocom/msc/transaction.h index 69cd65229..cab00308a 100644 --- a/include/osmocom/msc/transaction.h +++ b/include/osmocom/msc/transaction.h @@ -19,7 +19,7 @@ struct vty; #define LOG_TRANS_CAT(trans, subsys, level, fmt, args...) \ LOGP(subsys, level, \ "trans(%s %s callref-0x%x tid-%u%s) " fmt, \ - (trans) ? trans_type_name((trans)->type) : "NULL", \ + (trans) ? trans_name(trans) : "NULL", \ (trans) ? ((trans)->msc_a ? (trans)->msc_a->c.fi->id : vlr_subscr_name((trans)->vsub)) : "NULL", \ (trans) ? (trans)->callref : 0, \ (trans) ? (trans)->transaction_id : 0, \ @@ -174,3 +174,5 @@ static inline int trans_log_subsys(enum trans_type type) } return DMSC; } + +const char *trans_name(const struct gsm_trans *trans); -- cgit v1.2.3