From patchwork Tue Feb 10 15:16:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ananth N Mavinakayanahalli X-Patchwork-Id: 438440 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DF2A1140151 for ; Wed, 11 Feb 2015 02:15:58 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id CF4C61A083B for ; Wed, 11 Feb 2015 02:15:58 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e28smtp08.in.ibm.com (e28smtp08.in.ibm.com [122.248.162.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 925461A04A2 for ; Wed, 11 Feb 2015 02:15:55 +1100 (AEDT) Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Feb 2015 20:45:53 +0530 Received: from d28dlp01.in.ibm.com (9.184.220.126) by e28smtp08.in.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Feb 2015 20:45:51 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id D8F6CE004C for ; Tue, 10 Feb 2015 20:47:24 +0530 (IST) Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay04.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1AFFcrN29360246 for ; Tue, 10 Feb 2015 20:45:38 +0530 Received: from d28av05.in.ibm.com (localhost [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1AFFbMg010437 for ; Tue, 10 Feb 2015 20:45:37 +0530 Received: from thinktux.in.ibm.com ([9.79.200.135]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t1AFFbbK010403 for ; Tue, 10 Feb 2015 20:45:37 +0530 To: skiboot@lists.ozlabs.org From: Ananth N Mavinakayanahalli Date: Tue, 10 Feb 2015 20:46:49 +0530 Message-ID: <20150210151648.14819.41056.stgit@thinktux.in.ibm.com> In-Reply-To: <20150210151237.14819.6035.stgit@thinktux.in.ibm.com> References: <20150210151237.14819.6035.stgit@thinktux.in.ibm.com> User-Agent: StGit/0.16 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15021015-0029-0000-0000-000004674734 Subject: [Skiboot] [PATCH 10/10] chiptod: Change aborts to asserts X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" ... so we get good debug data on TI Signed-off-by: Ananth N Mavinakayanahalli --- hw/chiptod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/chiptod.c b/hw/chiptod.c index 1e3448b..899fcf1 100644 --- a/hw/chiptod.c +++ b/hw/chiptod.c @@ -809,7 +809,7 @@ void chiptod_init(u32 master_cpu) if (!chiptod_probe(master_cpu)) { prerror("CHIPTOD: Failed ChipTOD detection !\n"); op_display(OP_FATAL, OP_MOD_CHIPTOD, 0); - abort(); + assert(false); } op_display(OP_LOG, OP_MOD_CHIPTOD, 1); @@ -827,7 +827,7 @@ void chiptod_init(u32 master_cpu) cpu_wait_job(cpu_queue_job(cpu0, chiptod_sync_master, &sres), true); if (!sres) { op_display(OP_FATAL, OP_MOD_CHIPTOD, 2); - abort(); + assert(sres); } op_display(OP_LOG, OP_MOD_CHIPTOD, 2);