From 94936254eb2fde284d1c35b2076f4ac305d33f8b Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 27 Jul 2017 14:06:21 +0200 Subject: gsup client: move not-connected to error loglevel Change-Id: I8290963aedb7237da89c9ff98adf4cd33beb5031 --- src/libcommon/gsup_client.c | 12 ++---------- 1 file 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; -- cgit v1.2.3