From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 18 Jul 2018 08:53:51 -0400 Subject: [U-Boot] [RFC 2/2] env: Add prefix to error messages when loading env In-Reply-To: <20180717220912.11358-2-semen.protsenko@linaro.org> References: <20180717220912.11358-1-semen.protsenko@linaro.org> <20180717220912.11358-2-semen.protsenko@linaro.org> Message-ID: <20180718125351.GE4609@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 18, 2018 at 01:09:12AM +0300, Sam Protsenko wrote: > This is just a draft to discuss ideas related to "Make U-Boot log great > again" thread. > > With this patch we will see something like: > > Loading Environment from FAT... > --> MMC: no card present > --> ** Bad device mmc 0 ** > --> Failed (-5) > Loading Environment from MMC... > --> OK > > instead of: > > Loading Environment from FAT... MMC: no card present > ** Bad device mmc 0 ** > Failed (-5) > Loading Environment from MMC... OK So, I think maybe (and given Wolfgang's comments) we should think about how the output might want to look, and how to get there without GD changes. Perhaps: Attempting to load Environment from FAT (do we have more easily available info at this point?): MMC: no card present ** Bad device mmc 0 ** Failed (-5) Loading Environment from MMC... Attempting to load Environment from MMC: Succeeded -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: