hnbgw: Use LOGHNB() to add log context information to log lines
So far we don't really have any way of matching a given log message
to a specific hNB. Let's use the newly-introduced LOGHNB() macro.
Change-Id: Ia16eed4ca5e9ef231259e94c65105f7586f366bc
diff --git a/src/context_map.c b/src/context_map.c
index dc555bf..f516efe 100644
--- a/src/context_map.c
+++ b/src/context_map.c
@@ -85,11 +85,11 @@
}
if (alloc_cn_conn_id(cn_if_new, &new_scu_conn_id) < 0) {
- LOGP(DMAIN, LOGL_ERROR, "Unable to allocate CN connection ID\n");
+ LOGHNB(hnb, DMAIN, LOGL_ERROR, "Unable to allocate CN connection ID\n");
return NULL;
}
- LOGP(DMAIN, LOGL_INFO, "Creating new Mapping RUA CTX %p/%u <-> SCU Conn ID %p/%u\n",
+ LOGHNB(hnb, DMAIN, LOGL_INFO, "Creating new Mapping RUA CTX %p/%u <-> SCU Conn ID %p/%u\n",
hnb, rua_ctx_id, cn_if_new, new_scu_conn_id);
/* alloate a new map entry */
@@ -125,8 +125,7 @@
/* we don't allocate new mappings in the CN->HNB
* direction, as the RUA=SCCP=SUA connections are always
* established from HNB towards CN. */
- LOGP(DMAIN, LOGL_NOTICE, "Unable to resolve map for CN "
- "connection ID %p/%u\n", cn, scu_conn_id);
+ LOGP(DMAIN, LOGL_NOTICE, "Unable to resolve map for CN " "connection ID %p/%u\n", cn, scu_conn_id);
return NULL;
}