diff mbox

[10/10] chiptod: Change aborts to asserts

Message ID 20150210151648.14819.41056.stgit@thinktux.in.ibm.com
State Rejected
Headers show

Commit Message

Ananth N Mavinakayanahalli Feb. 10, 2015, 3:16 p.m. UTC
... so we get good debug data on TI

Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
---
 hw/chiptod.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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);