diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-21 13:58:39 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-21 14:15:10 +0100 |
commit | 029a70e493ee1409516466b2d3baf0f5fb8e1310 (patch) | |
tree | 92961c92df8d6ea5b310a2c29ef80cc8851117c5 /include/osmocom | |
parent | de80976d94ca0f38651dcdc6c337d53e7f2ee04a (diff) |
Improve logging in gprs_llc.c code
Change-Id: Id89cc6760179fb9b1709a30b5d1af41d466b280b
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/sgsn/gprs_sgsn.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h index 0a52a7df5..0886ce7e9 100644 --- a/include/osmocom/sgsn/gprs_sgsn.h +++ b/include/osmocom/sgsn/gprs_sgsn.h @@ -257,15 +257,15 @@ static inline bool sgsn_mm_ctx_is_authenticated(struct sgsn_mm_ctx *ctx) LOGP(DMM, level, "UE(%p){NOTSUPPORTED} " fmt, ue, ## args) #endif -#define LOGGBP(llme, level, fmt, args...) \ - LOGP(DMM, level, "LLME(%08x/%08x){%s} " fmt, (llme)->old_tlli, \ +#define LOGGBP(llme, category, level, fmt, args...) \ + LOGP(category, level, "LLME(%08x/%08x){%s} " fmt, (llme)->old_tlli, \ (llme)->tlli, get_value_string_or_null(gprs_llc_llme_state_names, (llme)->state), ## args); #define LOGGBIUP(llme, msg, level, fmt, args...) \ do { \ struct ranap_ue_conn_ctx * _ue; \ if (llme) { \ - LOGGBP(llme, level, fmt, ## args); \ + LOGGBP(llme, DMM, level, fmt, ## args); \ } else if ((msg) && (_ue = MSG_IU_UE_CTX(msg))) { \ LOGIUP(_ue, level, fmt, ## args); \ } else { OSMO_ASSERT(0); } \ |