neels has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/31764 )

Change subject: tweak LOGHNB()
......................................................................

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
---
M include/osmocom/hnbgw/hnbgw.h
1 file changed, 23 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved




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 @@
 };

 #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,

--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/31764
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: If6f0c3ae81c737b7488fa93c435179dcf27a5c94
Gerrit-Change-Number: 31764
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofm...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: neels <nhofm...@sysmocom.de>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to