From 537b655b99c18b5d34446eeceb9c867f745171dd Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 24 Jan 2018 14:10:51 +0100 Subject: cosmetic: log prim operation as text When logging SCCP error, log failed primitive operation as text. Change-Id: I91f739cea9f518a24fff6870f7dceab8175c9646 Related: OS#2851 --- src/osmo-bsc/osmo_bsc_sigtran.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3