From 95c32a505a7bfef2dcac2a975b1f5875f490c405 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 29 Sep 2017 17:53:06 +0200 Subject: atjboottool: split fwu code into its own file Slightly cleanup the code by removing the old and dangerous --force option. Change-Id: I776633a9924797fcd509b8b80623bcd64b391672 --- utils/atj2137/atjboottool/misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils/atj2137/atjboottool/misc.c') diff --git a/utils/atj2137/atjboottool/misc.c b/utils/atj2137/atjboottool/misc.c index 108235e7fd..b13e4b4c5e 100644 --- a/utils/atj2137/atjboottool/misc.c +++ b/utils/atj2137/atjboottool/misc.c @@ -37,7 +37,12 @@ static bool g_color_enable = true; void *xmalloc(size_t s) { void * r = malloc(s); - if(!r) bugp("malloc"); + if(!r) + { + color(GREY); + printf("Allocation failed.\n"); + abort(); + } return r; } -- cgit v1.2.3