From 7992ce01637da8d7cd81c7826e66f1bad67e9b63 Mon Sep 17 00:00:00 2001 From: Neels Janosch Hofmeyr Date: Thu, 9 Mar 2023 01:50:20 +0100 Subject: [PATCH] tweak LOGHNB() Add braces around context part. In the HNBGW_Tests.ttcn output, I see this: DRUA DEBUG TTCN3 HNodeB transmitting RUA DirectTransfer which reads like the hNodeB would transmit a RUA to us. Instead, this is us sending RUA to the hNodeB, which is much clearer like this: DRUA DEBUG (TTCN3 HNodeB) transmitting RUA DirectTransfer This matches the way we typically show context info in osmo logging. Change-Id: If6f0c3ae81c737b7488fa93c435179dcf27a5c94 --- include/osmocom/hnbgw/hnbgw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osmocom/hnbgw/hnbgw.h b/include/osmocom/hnbgw/hnbgw.h index 96a2ef3..1bf140a 100644 --- a/include/osmocom/hnbgw/hnbgw.h +++ b/include/osmocom/hnbgw/hnbgw.h @@ -24,7 +24,7 @@ enum { }; #define LOGHNB(HNB_CTX, ss, lvl, fmt, args ...) \ - LOGP(ss, lvl, "%s " fmt, hnb_context_name(HNB_CTX), ## args) + LOGP(ss, lvl, "(%s) " fmt, hnb_context_name(HNB_CTX), ## args) enum hnb_ctrl_node { CTRL_NODE_HNB = _LAST_CTRL_NODE,