On Tue, Aug 07, 2018 at 01:37:34PM +0200, Wolfgang Denk wrote:
> Dear Tom,
> 
> In message <20180807111435.GD29229@bill-the-cat> you wrote:
> > 
> > > Its a "warn" and this should be visible to the user IMHO. One might
> > > discuss, if an "info" or "notice" text should printed, but warnings
> > > seem quite important (at least for my taste). Changing this to even
> ...
> > Please bump it per board/SoC, thanks!
> 
> So we stop printing warnings now, just to satisfy code size
> limitations on a few boards?
>
> This is a totally wrong approach!  If code size is a problem, these
> boards should disable unneeded or at least non-essential features,
> but you don;t want to ignore warnings, especially if these cause a
> command to not perform the expected operation.

Yes, by default "warnings", which means pr_warn, along with pr_notice
and pr_info get optimized away.  In no case should a warning be printed
in a case where we aren't otherwise recovering and working correctly.  I
think there's a strong case here that the root problem here is that the
prints in question ought to be pr_err and that should be corrected in
the kernel too.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to