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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox