diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-22 14:44:35 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-27 15:40:01 +0100 |
commit | 785fadc0d9a27e9706a421b933213330291f3dab (patch) | |
tree | c811d456895d43cbe07e9ebc36809373140a21b9 /src/libmsc/osmo_msc.c | |
parent | 6166f29412ef1dc3395dcee914ec98bd013663b4 (diff) |
cosmetic: log error when using a conn that's in release
If a conn is attempted to be used when in release, log an error, but don't skip
tracking.
No current code path apparently hits this, according to msc_vlr_tests. Just
making sure that we will prominently see such errors when we introduce any.
Change-Id: I8dd20ee56ce5ad7a90fcd03a06604c383e5eed54
Diffstat (limited to 'src/libmsc/osmo_msc.c')
-rw-r--r-- | src/libmsc/osmo_msc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libmsc/osmo_msc.c b/src/libmsc/osmo_msc.c index d55940d9c..2a868a880 100644 --- a/src/libmsc/osmo_msc.c +++ b/src/libmsc/osmo_msc.c @@ -349,7 +349,10 @@ _msc_subscr_conn_get(struct gsm_subscriber_connection *conn, OSMO_ASSERT(conn); if (conn->in_release) - return NULL; + LOGPSRC(DREF, LOGL_ERROR, file, line, + "%s: MSC conn use error: using conn that is already in release (%s)\n", + vlr_subscr_name(conn->vsub), + msc_subscr_conn_use_name(balance_token)); if (balance_token != MSC_CONN_USE_UNTRACKED) { uint32_t flag = 1 << balance_token; |