Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 07/10] ril: Remove asserts
Date: Mon, 19 Oct 2015 08:55:20 -0500	[thread overview]
Message-ID: <5624F648.9020209@gmail.com> (raw)
In-Reply-To: <1444927623-31141-8-git-send-email-alfonso.sanchez-beato@canonical.com>

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

Hi Alfonso,

On 10/15/2015 11:47 AM, Alfonso Sanchez-Beato wrote:
> ---
>   plugins/ril.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/plugins/ril.c b/plugins/ril.c
> index e31f24b..2edb0a9 100644
> --- a/plugins/ril.c
> +++ b/plugins/ril.c
> @@ -144,7 +144,9 @@ static void ril_radio_state_changed(struct ril_msg *message, gpointer user_data)
>   			break;
>   		default:
>   			/* Malformed parcel; no radio state == broken rild */
> -			g_assert(FALSE);
> +			ofono_error("%s: Bad radio state (%d), exiting",
> +							__func__, radio_state);
> +			exit(1);

Can we just remove the ril modem in question instead of killing the 
entire daemon?

>   		}
>   	}
>   }
> @@ -213,7 +215,6 @@ void ril_pre_sim(struct ofono_modem *modem)
>   	sim_data.ril_state_watch = NULL;
>
>   	rd->sim = ofono_sim_create(modem, rd->vendor, RILMODEM, &sim_data);
> -	g_assert(rd->sim != NULL);
>   }
>
>   void ril_post_sim(struct ofono_modem *modem)
>

Regards,
-Denis

  reply	other threads:[~2015-10-19 13:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 16:46 [PATCH 00/10] Re-factoring of gril and rilmodem Alfonso Sanchez-Beato
2015-10-15 16:46 ` [PATCH 01/10] gril: Move parcel processing to rilmodem Alfonso Sanchez-Beato
2015-10-15 16:46 ` [PATCH 02/10] gril: Adapt to movement of parcel processing Alfonso Sanchez-Beato
2015-10-15 16:46 ` [PATCH 03/10] rilmodem: " Alfonso Sanchez-Beato
2015-10-15 16:46 ` [PATCH 04/10] ril: " Alfonso Sanchez-Beato
2015-10-15 16:46 ` [PATCH 05/10] gril: Remove asserts Alfonso Sanchez-Beato
2015-10-19 13:53   ` Denis Kenzior
2015-10-15 16:46 ` [PATCH 06/10] rilmodem: " Alfonso Sanchez-Beato
2015-10-15 16:47 ` [PATCH 07/10] ril: " Alfonso Sanchez-Beato
2015-10-19 13:55   ` Denis Kenzior [this message]
2015-10-20  7:26     ` Alfonso Sanchez-Beato
2015-10-20  8:28       ` Simon Fels
2015-10-20 12:31       ` Denis Kenzior
2015-10-15 16:47 ` [PATCH 08/10] unit: Add unit tests for ril parcel processing Alfonso Sanchez-Beato
2015-10-15 16:47 ` [PATCH 09/10] build: Add rilmodem unit tests Alfonso Sanchez-Beato
2015-10-15 16:47 ` [PATCH 10/10] gitignore: Ignore " Alfonso Sanchez-Beato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5624F648.9020209@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox