From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1go2Ya-0008GS-Ul for barebox@lists.infradead.org; Mon, 28 Jan 2019 08:46:18 +0000 Date: Mon, 28 Jan 2019 09:46:15 +0100 From: Sascha Hauer Message-ID: <20190128084615.ssynohnulsd4sjwi@pengutronix.de> References: <20190121163503.GA2854@ravnborg.org> <20190122063306.yvfd6p2b52ofw2ab@pengutronix.de> <33796811548166043@iva7-4f557d6b60d4.qloud-c.yandex.net> <20190122144240.t7bknlqpipjpzeda@pengutronix.de> <12201721548173536@iva5-750e13568e4d.qloud-c.yandex.net> <20190123091134.2ibecc3f2sxgr6gc@pengutronix.de> <39543571548237706@iva8-6be7d23653d9.qloud-c.yandex.net> <20190123101735.faeyxjmmfxogvwqt@pengutronix.de> <8696391548418684@myt4-929fb874f3f2.qloud-c.yandex.net> <61845721548425461@sas2-80cfc068821c.qloud-c.yandex.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <61845721548425461@sas2-80cfc068821c.qloud-c.yandex.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [HELP] Barebox porting To: Seraphim Dolbilov Cc: Barebox List On Fri, Jan 25, 2019 at 05:11:01PM +0300, Seraphim Dolbilov wrote: > Hello, friends! > > I'm interested if there is any internal Barebox convention about > return types and values of initcall functions. What shall return > my initcall if I want to stop booting and display error message? An error message will be printed whenever you return an initcall with an error. barebox won't stop then, but instead continues. This is done to be able to tell the user something went wrong without adding many printfs. If your error is so severe that you can't continue you have to use panic() instead. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox