diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-07 21:20:43 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-21 00:40:31 +0200 |
commit | f636e6cedd3d1ef0c53daa3320a487751a9cdc35 (patch) | |
tree | e7c8011202ce30035de8c6450f878cfe11213417 /include/osmocom | |
parent | a09f4987c1e636052a4e37dae9d183d5aea49a8f (diff) |
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
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/msc/transaction.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |