]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: fixup printf modifiers to match types used
authorMike Frysinger <vapier@gentoo.org>
Mon, 19 Jan 2009 00:46:06 +0000 (19:46 -0500)
committerScott Wood <scottwood@freescale.com>
Fri, 23 Jan 2009 16:32:52 +0000 (10:32 -0600)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c
drivers/mtd/nand/nand_util.c

index 3d434e8a709d235bccf5f617b806a642cdd2c902..aedf8a624e7c978770b7427f90585c12dde0be31 100644 (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;
index 77da53e2618615b7b35460b8fc1c40a7a3027fdb..6ba52b30c0ab93144dfbd062efdb88bc05594036 100644 (file)
@@ -495,7 +495,7 @@ int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
        if (len_incl_bad == *length) {
                rval = nand_write (nand, offset, length, buffer);
                if (rval != 0)
-                       printf ("NAND write to offset %x failed %d\n",
+                       printf ("NAND write to offset %zx failed %d\n",
                                offset, rval);
 
                return rval;
@@ -506,7 +506,7 @@ int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
                size_t write_size;
 
                if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
-                       printf ("Skip bad block 0x%08x\n",
+                       printf ("Skip bad block 0x%08zx\n",
                                offset & ~(nand->erasesize - 1));
                        offset += nand->erasesize - block_offset;
                        continue;
@@ -519,7 +519,7 @@ int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
 
                rval = nand_write (nand, offset, &write_size, p_buffer);
                if (rval != 0) {
-                       printf ("NAND write to offset %x failed %d\n",
+                       printf ("NAND write to offset %zx failed %d\n",
                                offset, rval);
                        *length -= left_to_write;
                        return rval;
@@ -565,7 +565,7 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
        if (len_incl_bad == *length) {
                rval = nand_read (nand, offset, length, buffer);
                if (rval != 0)
-                       printf ("NAND read from offset %x failed %d\n",
+                       printf ("NAND read from offset %zx failed %d\n",
                                offset, rval);
 
                return rval;
@@ -576,7 +576,7 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
                size_t read_length;
 
                if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
-                       printf ("Skipping bad block 0x%08x\n",
+                       printf ("Skipping bad block 0x%08zx\n",
                                offset & ~(nand->erasesize - 1));
                        offset += nand->erasesize - block_offset;
                        continue;
@@ -589,7 +589,7 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
 
                rval = nand_read (nand, offset, &read_length, p_buffer);
                if (rval != 0) {
-                       printf ("NAND read from offset %x failed %d\n",
+                       printf ("NAND read from offset %zx failed %d\n",
                                offset, rval);
                        *length -= left_to_read;
                        return rval;