From 43b0cbe282f2f8d3772b2602384cfb76b6c9b880 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 19 Nov 2021 14:21:24 +0100 Subject: [PATCH] bssgp_bvc_fsm: Move log message to the correct place The log message is very confusing if printed for PtP-BVCI as well. Move it into the correct if branch. Change-Id: I0359443ddc52108b492f741005c4699e06b40183 --- src/gb/bssgp_bvc_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/bssgp_bvc_fsm.c b/src/gb/bssgp_bvc_fsm.c index ce9079d57..664ad0925 100644 --- a/src/gb/bssgp_bvc_fsm.c +++ b/src/gb/bssgp_bvc_fsm.c @@ -415,8 +415,8 @@ static void bssgp_bvc_fsm_unblocked(struct osmo_fsm_inst *fi, uint32_t event, vo rx = data; tp = (const struct tlv_parsed *) msgb_bcid(rx); /* If BVC-UNBLOCK-ACK PDU is received by an BSS for the signalling BVC, the PDU is ignored. */ - LOGPFSML(fi, LOGL_ERROR, "Rx BVC-UNBLOCK-ACK on BVCI=0 is illegal\n"); if (bfp->bvci == 0) { + LOGPFSML(fi, LOGL_ERROR, "Rx BVC-UNBLOCK-ACK on BVCI=0 is illegal\n"); if (!bfp->role_sgsn) break; _tx_status(fi, BSSGP_CAUSE_SEM_INCORR_PDU, rx);