improve logging, remove obsolete FIXMEs, return of non-void functions
diff --git a/src/context_map.c b/src/context_map.c
index 8fc48ba..7fbb30d 100644
--- a/src/context_map.c
+++ b/src/context_map.c
@@ -71,9 +71,10 @@
 		}
 	}
 
-	/* FIXME: allocated CN side ID! */
-	if (alloc_cn_conn_id(cn_if_new, &new_scu_conn_id) < 0)
+	if (alloc_cn_conn_id(cn_if_new, &new_scu_conn_id) < 0) {
+		LOGP(DMAIN, LOGL_ERROR, "Unable to allocate CN connection ID\n");
 		return NULL;
+	}
 
 	/* alloate a new map entry */
 	map = talloc_zero(hnb, struct hnbgw_context_map);
@@ -96,8 +97,6 @@
 {
 	struct hnbgw_context_map *map;
 
-	/* FIXME: allocated HNB side ID! */
-
 	llist_for_each_entry(map, &cn->map_list, cn_list) {
 		if (map->state != MAP_S_ACTIVE)
 			continue;
@@ -107,7 +106,9 @@
 	}
 	/* we don't allocate new mappings in the CN->HNB
 	 * direction, as the RUA=SCCP=SUA connections are always
-	 * established from HNB towards CN. */ 
+	 * established from HNB towards CN. */
+	LOGP(DMAIN, LOGL_NOTICE, "Unable to resolve map for CN "
+		"connection ID %u\n", scu_conn_id);
 	return NULL;
 }
 
@@ -128,6 +129,7 @@
 	struct hnb_gw *gw = data;
 	struct hnbgw_cnlink *cn;
 
+	DEBUGP(DMAIN, "Running context mapper garbage collection\n");
 	/* iterate over list of core network (links) */
 	llist_for_each_entry(cn, &gw->cn_list, list) {
 		struct hnbgw_context_map *map;
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index 77c391d..fa5a868 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -290,7 +290,7 @@
 		break;
 	}
 
-	DEBUGP(DRUA, "Connect.req(ctx=0x%x, %s)\n", context_id,
+	DEBUGP(DRUA, "RUA Connect.req(ctx=0x%x, %s)\n", context_id,
 		ies.establishment_Cause == RUA_Establishment_Cause_emergency_call
 		? "emergency" : "normal");
 
@@ -320,7 +320,7 @@
 	context_id = asn1bitstr_to_u32(&ies.context_ID);
 	scu_cause = rua_to_scu_cause(&ies.cause);
 
-	DEBUGP(DRUA, "Disconnect.req(ctx=0x%x,cause=%s)\n", context_id,
+	DEBUGP(DRUA, "RUA Disconnect.req(ctx=0x%x,cause=%s)\n", context_id,
 		rua_cause_str(&ies.cause));
 
 	/* route to CS (MSC) or PS (SGSN) domain */
@@ -359,7 +359,7 @@
 
 	context_id = asn1bitstr_to_u32(&ies.context_ID);
 
-	DEBUGP(DRUA, "Data.req(ctx=0x%x)\n", context_id);
+	DEBUGP(DRUA, "RUA Data.req(ctx=0x%x)\n", context_id);
 
 	/* route to CS (MSC) or PS (SGSN) domain */
 	switch (ies.cN_DomainIndicator) {
@@ -390,7 +390,7 @@
 	if (rc < 0)
 		return rc;
 
-	DEBUGP(DRUA, "UData.req()\n");
+	DEBUGP(DRUA, "RUA UData.req()\n");
 
 	/* according tot the spec, we can primarily receive Overload,
 	 * Reset, Reset ACK, Error Indication, reset Resource, Reset
@@ -414,7 +414,7 @@
 	if (rc < 0)
 		return rc;
 
-	DEBUGP(DRUA, "UData.ErrorInd()\n");
+	DEBUGP(DRUA, "RUA UData.ErrorInd()\n");
 
 	return rc;
 }
@@ -442,18 +442,26 @@
 	case RUA_ProcedureCode_id_privateMessage:
 		break;
 	default:
-		return -1;
+		LOGP(DRUA, LOGL_NOTICE, "Unknown RUA Procedure %u\n",
+		     imsg->procedureCode);
+		rc = -1;
 	}
+
+	return rc;
 }
 
 static int rua_rx_successful_outcome_msg(struct msgb *msg, RUA_SuccessfulOutcome_t *in)
 {
 	/* FIXME */
+	LOGP(DRUA, LOGL_NOTICE, "Unexpected RUA Sucessful Outcome\n");
+	return -1;
 }
 
 static int rua_rx_unsuccessful_outcome_msg(struct msgb *msg, RUA_UnsuccessfulOutcome_t *in)
 {
 	/* FIXME */
+	LOGP(DRUA, LOGL_NOTICE, "Unexpected RUA Unsucessful Outcome\n");
+	return -1;
 }
 
 
@@ -474,8 +482,11 @@
 		rc = rua_rx_unsuccessful_outcome_msg(msg, &pdu->choice.unsuccessfulOutcome);
 		break;
 	default:
-		return -1;
+		LOGP(DRUA, LOGL_NOTICE, "Unknown RUA presence %u\n", pdu->present);
+		rc = -1;
 	}
+
+	return rc;
 }
 
 int hnbgw_rua_rx(struct hnb_context *hnb, struct msgb *msg)