diff mbox

[U-Boot] cmd_mem.c: Update 'iteration_limit' to unsigned long

Message ID 1428429470-1325-1-git-send-email-trini@konsulko.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini April 7, 2015, 5:57 p.m. UTC
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 <trini@konsulko.com>
---
 common/cmd_mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini April 7, 2015, 6:01 p.m. UTC | #1
On Tue, Apr 07, 2015 at 01:57:50PM -0400, Tom Rini wrote:

> 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 <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 20a875c..3f85c1a 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -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;