From 6207f5bfcebd0ff25623e87226b753d896850aff Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Fri, 14 May 2010 16:28:17 +0300 Subject: [PATCH] Fix CBS routing request failure reporting --- drivers/isimodem/cbs.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/isimodem/cbs.c b/drivers/isimodem/cbs.c index cef99991..a4ee764c 100644 --- a/drivers/isimodem/cbs.c +++ b/drivers/isimodem/cbs.c @@ -90,11 +90,14 @@ static bool routing_resp_cb(GIsiClient *client, const void *restrict data, return false; if (msg[1] != SMS_OK) { - DBG("Request failed: 0x%02X (%s).\n\n Unable to bootstrap CBS" - " routing.\n It appears some other component is" - " already\n registered as the CBS routing endpoint.\n " - " As a consequence, receiving CBSs is NOT going" - " to work.\n\n", msg[1], sms_isi_cause_name(msg[1])); + if (msg[1] == SMS_ERR_PP_RESERVED) + DBG("Request failed: 0x%02"PRIx8" (%s).\n\n " + "Unable to bootstrap CBS routing.\n " + "It appears some other component is " + "already\n registered as the CBS " + "routing endpoint.\n As a consequence, " + "receiving CBSs is NOT going to work.\n\n", + msg[1], sms_isi_cause_name(msg[1])); return true; }