[U-Boot] [PATCH v5 013/101] RFC: sandbox: net: Suppress the MAC-address warnings

Simon Glass sjg at chromium.org
Tue Nov 26 17:07:59 UTC 2019


Hi Bin,

On Mon, 25 Nov 2019 at 23:13, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon, Joe,
>
> On Mon, Nov 25, 2019 at 12:11 PM Simon Glass <sjg at chromium.org> wrote:
> >
> > These warnings appear every thing sandbox is run (see below) and dwarf the
> > actual useful output. Suppress them in two ways:
> >
> > 1. For the mismatch warnings, only set the eth<x>addr environment
> > variables when running tests.
> >
> > 2. For the 'MAC address from ROM' warning, never print this on sandbox.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> > Unfortunately this breaks the tests so is not applicable as is:
> >
> > $ /tmp/b/sandbox/u-boot -T -c "ut dm eth_prime"
>
> What's our solution to the problem described here? As this commit will
> be reverted by the next patch in this series ...

Joe suggested making the warnings sandbox-specific I think. I found
that my commit stopped env setting from working anyway.

I think we should do something here, but I haven't put enough time
into it to really understand what is going on.

Regards,
Simon


More information about the U-Boot mailing list