rspro_client_fsm: Log clientConnectResult != ok
This should aid debugging. Related: SYS#5950 Change-Id: I8f584640758be0cceab61dcb333c81374da3288bchanges/56/28056/1
parent
7f8bce4f06
commit
f5f5805f0c
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <asn_application.h>
|
||||
struct asn_TYPE_descriptor_t;
|
||||
|
||||
const char *asn_type_name(const asn_TYPE_descriptor_t *td);
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <osmocom/gsm/protocol/ipaccess.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "asn1c_helpers.h"
|
||||
#include "rspro_client_fsm.h"
|
||||
|
||||
#define S(x) (1 << (x))
|
||||
|
@ -229,6 +230,8 @@ static void srvc_st_established(struct osmo_fsm_inst *fi, uint32_t event, void *
|
|||
pdu = data;
|
||||
res = rspro_get_result(pdu);
|
||||
if (res != ResultCode_ok) {
|
||||
LOGPFSML(fi, LOGL_ERROR, "Rx RSPRO connectClientRes(result=%s), closing\n",
|
||||
asn_enum_name(&asn_DEF_ResultCode, res));
|
||||
ipa_client_conn_close(srvc->conn);
|
||||
osmo_fsm_inst_dispatch(fi, SRVC_E_TCP_DOWN, NULL);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue