diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-12-11 16:50:59 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-12-11 17:25:22 +0100 |
commit | d5c7582f72cea950508b6084ae7887fe4998e889 (patch) | |
tree | bcd4c70e2c668959d6c08a85ac7929a8ca7ac70d /src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 4e13309104eee3f41f38fa485dd45dfa406bf64d (diff) |
bsc: dtap: Set subscr log context
Change-Id: I362a7d10f5ca9a95b594f7caafd7ed5b10fd059a
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r-- | src/osmo-bsc/osmo_bsc_bssap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 39425f6e9..b5ff152b8 100644 --- a/src/osmo-bsc/osmo_bsc_bssap.c +++ b/src/osmo-bsc/osmo_bsc_bssap.c @@ -980,6 +980,8 @@ int bsc_handle_udt(struct bsc_msc_data *msc, int bsc_handle_dt(struct gsm_subscriber_connection *conn, struct msgb *msg, unsigned int len) { + log_set_context(LOG_CTX_BSC_SUBSCR, conn->bsub); + if (len < sizeof(struct bssmap_header)) { LOGP(DMSC, LOGL_ERROR, "The header is too short.\n"); } @@ -997,6 +999,7 @@ int bsc_handle_dt(struct gsm_subscriber_connection *conn, gsm0808_bssap_name(msg->l3h[0])); } + log_set_context(LOG_CTX_BSC_SUBSCR, NULL); return -1; } |