From 029a70e493ee1409516466b2d3baf0f5fb8e1310 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 21 Nov 2019 13:58:39 +0100 Subject: Improve logging in gprs_llc.c code Change-Id: Id89cc6760179fb9b1709a30b5d1af41d466b280b --- include/osmocom/sgsn/gprs_sgsn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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); } \ -- cgit v1.2.3