[U-Boot] [PATCH] net: turn name len check into an assert

Wolfgang Denk wd at denx.de
Wed Sep 21 23:04:43 CEST 2011


Dear Mike Frysinger,

In message <1315802993-12798-1-git-send-email-vapier at gentoo.org> you wrote:
> The new sanity check introduces a printf warning for some systems:
> 	eth.c:233: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
> 
> Rather than tweak the format string, use the new assert() helper instead.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  net/eth.c |    7 +------
>  1 files changed, 1 insertions(+), 6 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
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
"One day," said a dull voice from down below, "I'm going to  be  back
in  form again and you're going to be very sorry you said that. For a
very long time. I might even go so far as to make even more Time just
for you to be sorry in."              - Terry Pratchett, _Small Gods_


More information about the U-Boot mailing list