aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-24 14:10:51 +0100
committerMax <msuraev@sysmocom.de>2018-01-24 14:10:51 +0100
commit537b655b99c18b5d34446eeceb9c867f745171dd (patch)
tree26a3eaa8e5c4ec5b47aa8ef60d4f9ab7c63377dc
parent084b421fba9284e9dbe80cf4ee514fafb92ca54f (diff)
cosmetic: log prim operation as text
When logging SCCP error, log failed primitive operation as text. Change-Id: I91f739cea9f518a24fff6870f7dceab8175c9646 Related: OS#2851
-rw-r--r--src/osmo-bsc/osmo_bsc_sigtran.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 19a36da47..5b065105f 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -230,7 +230,8 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu)
break;
default:
- LOGP(DMSC, LOGL_ERROR, "Unhandled SIGTRAN primitive: %u:%u\n", oph->primitive, oph->operation);
+ LOGP(DMSC, LOGL_ERROR, "Unhandled SIGTRAN operation %s on primitive %u\n",
+ get_value_string(osmo_prim_op_names, oph->operation), oph->primitive);
break;
}