]> git.sur5r.net Git - u-boot/commit
itest: fix result of string compares
authorWolfgang Denk <wd@denx.de>
Tue, 8 Feb 2011 15:56:05 +0000 (16:56 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 15 Feb 2011 20:45:55 +0000 (21:45 +0100)
commitcc22b795fb5fee72bd567eec5d33a11e8b989086
tree6d23882891ce53279ddaa5f7989362d37bdd7764
parent518075fc6ae8a4420b937009130e70cfdb7083b8
itest: fix result of string compares

The implementation of the string compare function of the "itest"
command was weird, as only the length of the shortest argument was
included in the compare, with the result that something like
"itest.s abd == abddef" would return TRUE.  Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
common/cmd_itest.c