]> git.sur5r.net Git - u-boot/blobdiff - board/mpc8540eval/flash.c
Fix some more print() format errors.
[u-boot] / board / mpc8540eval / flash.c
index 7300a041a21dc150c66c821d7cb4f28e18b0cfe3..79eb04ca87b65d0f5a1a3ee4e56a9f6b44ab788f 100644 (file)
@@ -591,7 +591,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                cnt -= FLASH_BLOCK_SIZE;
                if (((count-cnt)>>10)>temp) {
                        temp=(count-cnt)>>10;
-                       printf("\r%d KB",temp);
+                       printf("\r%lu KB",temp);
                }
        }
        printf("\n");
@@ -699,7 +699,8 @@ static int write_block(flash_info_t *info, uchar * src, ulong dest, ulong cnt)
                        }
                }
                if (csr & 0x4040) {
-                       printf ("CSR indicates write error (%04x) at %08lx\n", csr, (ulong)addr);
+                       printf ("CSR indicates write error (%04lx) at %08lx\n",
+                               csr, (ulong)addr);
                        flag = 1;
                }
                /* Clear Status Registers Command */
@@ -756,7 +757,8 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
                        }
                }
                if (csr & 0x4040) {
-                       printf ("CSR indicates write error (%04x) at %08lx\n", csr, (ulong)addr);
+                       printf ("CSR indicates write error (%04lx) at %08lx\n",
+                               csr, (ulong)addr);
                        flag = 1;
                }
                /* Clear Status Registers Command */