From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 18 Jul 2018 08:19:50 +0200 Subject: [U-Boot] [RFC 1/2] env: Drop error messages when loading environment In-Reply-To: <20180717220912.11358-1-semen.protsenko@linaro.org> References: <20180717220912.11358-1-semen.protsenko@linaro.org> Message-ID: <20180718061950.6BDAA240133@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sam, In message <20180717220912.11358-1-semen.protsenko@linaro.org> you wrote: > This is just a draft to discuss ideas related to "Make U-Boot log great > again" thread. > > With this patch we will have something like this: > > Loading Environment from FAT... Failed (-5) > Loading Environment from MMC... OK > > instead of this: > > Loading Environment from FAT... MMC: no card present > ** Bad device mmc 0 ** > Failed (-5) > Loading Environment from MMC... OK Why do you think an error message "Failed (-5)" looks great? >From a user's point of view, the "MMC: no card present" is _much_ better (but of course it could still be improved). Printing cryptic error codes has never been a good idea and is definitly not a "great" idea. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. - Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982