diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-07-27 14:06:21 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-30 14:09:31 +0200 |
commit | 5a66940b19c42f06289d4c1e3de1c2e17ec7ef4a (patch) | |
tree | c953d588cc98a70cead316483b207c3dcca98eaf /src/libcommon | |
parent | becfc4cb1ba9d759915a5b430aedc0d29c67858b (diff) |
gsup client: move not-connected to error loglevel
Change-Id: I8290963aedb7237da89c9ff98adf4cd33beb5031
Diffstat (limited to 'src/libcommon')
-rw-r--r-- | src/libcommon/gsup_client.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libcommon/gsup_client.c b/src/libcommon/gsup_client.c index 258f230cb..fd65e7b0b 100644 --- a/src/libcommon/gsup_client.c +++ b/src/libcommon/gsup_client.c @@ -330,20 +330,12 @@ void gsup_client_destroy(struct gsup_client *gsupc) int gsup_client_send(struct gsup_client *gsupc, struct msgb *msg) { - if (!gsupc) { - LOGP(DGPRS, LOGL_NOTICE, "No GSUP client, unable to " - "send %s\n", msgb_hexdump(msg)); + if (!gsupc || !gsupc->is_connected) { + LOGP(DGPRS, LOGL_ERROR, "GSUP not connected, unable to send %s\n", msgb_hexdump(msg)); msgb_free(msg); return -ENOTCONN; } - if (!gsupc->is_connected) { - LOGP(DGPRS, LOGL_NOTICE, "GSUP not connected, unable to " - "send %s\n", msgb_hexdump(msg)); - msgb_free(msg); - return -EAGAIN; - } - client_send(gsupc, IPAC_PROTO_EXT_GSUP, msg); return 0; |