osmo-bts-virtual: do not log GSMTAP message sending failure twice
Change-Id: I39e9edf35240ef31e3432412b459c2b8fb0de054
This commit is contained in:
parent
f9e7ccce27
commit
3f35ab258d
|
@ -21,6 +21,7 @@
|
||||||
*/
|
*/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -91,7 +92,7 @@ static void tx_to_virt_um(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
|
||||||
rc = virt_um_write_msg(pinst->phy_link->u.virt.virt_um, outmsg);
|
rc = virt_um_write_msg(pinst->phy_link->u.virt.virt_um, outmsg);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
LOGL1S(DL1P, LOGL_ERROR, l1t, tn, chan, fn,
|
LOGL1S(DL1P, LOGL_ERROR, l1t, tn, chan, fn,
|
||||||
"GSMTAP msg could not send to virtual Um\n");
|
"GSMTAP msg could not send to virtual Um: %s\n", strerror(-rc));
|
||||||
else if (rc == 0)
|
else if (rc == 0)
|
||||||
bts_shutdown(l1t->trx->bts, "VirtPHY write socket died\n");
|
bts_shutdown(l1t->trx->bts, "VirtPHY write socket died\n");
|
||||||
else
|
else
|
||||||
|
|
|
@ -27,7 +27,9 @@
|
||||||
#include <osmocom/core/talloc.h>
|
#include <osmocom/core/talloc.h>
|
||||||
#include "osmo_mcast_sock.h"
|
#include "osmo_mcast_sock.h"
|
||||||
#include "virtual_um.h"
|
#include "virtual_um.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual UM interface file descriptor callback.
|
* Virtual UM interface file descriptor callback.
|
||||||
|
@ -93,7 +95,7 @@ int virt_um_write_msg(struct virt_um_inst *vui, struct msgb *msg)
|
||||||
rc = mcast_bidir_sock_tx(vui->mcast_sock, msgb_data(msg),
|
rc = mcast_bidir_sock_tx(vui->mcast_sock, msgb_data(msg),
|
||||||
msgb_length(msg));
|
msgb_length(msg));
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
perror("Writing to multicast socket");
|
rc = -errno;
|
||||||
msgb_free(msg);
|
msgb_free(msg);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue