ipaccess: Use LOGPITS macro in __handle_ts1_write

Change-Id: Idce3bb3daf8ab16b84968a61502c826df8b773ed
This commit is contained in:
Pau Espin 2020-11-23 13:47:16 +01:00
parent 4da31b8173
commit 3bdf59b227
1 changed files with 3 additions and 2 deletions

View File

@ -497,11 +497,12 @@ static int __handle_ts1_write(struct osmo_fd *bfd, struct e1inp_line *line)
msg->l2h = msg->data;
ipa_prepend_header(msg, sign_link->tei);
DEBUGP(DLMI, "TX %u: %s\n", ts_nr, osmo_hexdump(msg->l2h, msgb_l2len(msg)));
LOGPITS(e1i_ts, DLMI, LOGL_NOTICE, "TX %u: %s\n", ts_nr,
osmo_hexdump(msg->l2h, msgb_l2len(msg)));
ret = send(bfd->fd, msg->data, msg->len, 0);
if (ret != msg->len) {
LOGP(DLINP, LOGL_ERROR, "failed to send A-bis IPA signalling "
LOGPITS(e1i_ts, DLINP, LOGL_ERROR, "failed to send A-bis IPA signalling "
"message. Reason: %s\n", strerror(errno));
goto err;
}