aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-20 16:27:25 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-21 10:53:32 +0100
commit7c441e20676f3042bf6a3c26d7d36f33f821e43d (patch)
tree9e3b5098ca1fd0d94080e7b451267376642475b7
parent9ed01722c24ca10ccf77f2b5fb49abbddc765e78 (diff)
examples/sccp_test_server: Log primitive name instead of value
-rw-r--r--examples/sccp_test_server.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/sccp_test_server.c b/examples/sccp_test_server.c
index 83b42fa..3aef725 100644
--- a/examples/sccp_test_server.c
+++ b/examples/sccp_test_server.c
@@ -30,8 +30,8 @@ static int refuser_prim_cb(struct osmo_prim_hdr *oph, void *_scu)
23);
break;
default:
- LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %u:%u\n",
- oph->primitive, oph->operation);
+ LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %s\n",
+ osmo_scu_prim_name(oph));
break;
}
msgb_free(oph->msg);
@@ -68,8 +68,8 @@ static int echo_prim_cb(struct osmo_prim_hdr *oph, void *_scu)
data, data_len);
break;
default:
- LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %u:%u\n",
- oph->primitive, oph->operation);
+ LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %s\n",
+ osmo_scu_prim_name(oph));
break;
}
msgb_free(oph->msg);
@@ -100,8 +100,8 @@ static int callback_prim_cb(struct osmo_prim_hdr *oph, void *_scu)
data, data_len);
break;
default:
- LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %u:%u\n",
- oph->primitive, oph->operation);
+ LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %s\n",
+ osmo_scu_prim_name(oph));
break;
}
msgb_free(oph->msg);