]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: turn name len check into an assert
authorMike Frysinger <vapier@gentoo.org>
Sun, 11 Sep 2011 18:49:53 +0000 (18:49 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 21 Sep 2011 21:04:34 +0000 (23:04 +0200)
commitff25d32c25acd78bac339254108b132178f294b8
treefa27eb1de52b9312c56963d8193aae5a5461875f
parentfc77086cf2976eaf73f5b9fe35a55293572428f2
net: turn name len check into an assert

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@gentoo.org>
net/eth.c