nand: fixup printf modifiers to match types used

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
Mike Frysinger 2009-01-18 19:46:06 -05:00 committed by Scott Wood
parent 389e6620e2
commit d4bade8d77
2 changed files with 8 additions and 8 deletions

View file

@ -160,7 +160,7 @@ out:
if (*size == nand->size)
puts("whole chip\n");
else
printf("offset 0x%lx, size 0x%x\n", *off, *size);
printf("offset 0x%lx, size 0x%zx\n", *off, *size);
return 0;
}
@ -398,7 +398,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 1;
}
printf(" %d bytes %s: %s\n", size,
printf(" %zu bytes %s: %s\n", size,
read ? "read" : "written", ret ? "ERROR" : "OK");
return ret == 0 ? 0 : 1;