cmd_mem.c: Update 'iteration_limit' to unsigned long
PATCH 1/1 cmd_mem.c: Update 'iteration_limit' to unsigned long
With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning:../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *'
Signed-off-by Tom Rini <[email protected]>
--- common/cmd_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_mem.c +1 -1
@@ -999,7 +999,7 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc, {ulong start, end;vu_long *buf, *dummy; -int iteration_limit =0 ; +ulong iteration_limit =0 ;int ret;ulong errs =0 ;/* number of errors, or -1 if interrupted */ ulong pattern =0 ;
Signature · 1 line
1.7.9.5
PATCH 1/1 cmd_mem.c: Update 'iteration_limit' to unsigned long
Quoted 6 lines · Tom Rini
With e37f1eb we now use
strict_strtoul()indo_mem_mtest()and this gives us a warning:../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *'Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150407/522ebff6/attachment.sig>