diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2008-07-10 19:00:15 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 20:12:09 (GMT) |
commit | 4109df6f75fc00ab7da56d286ba50149a0d16a69 (patch) | |
tree | f2f2bca858b24e5278a12044b8a7cc37131df8ef /drivers/block | |
parent | 4b13860e746b65e796213f2c97de8a80db8b68be (diff) | |
download | u-boot-4109df6f75fc00ab7da56d286ba50149a0d16a69.tar.xz |
silence misc printf formatting compiler warnings
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/fsl_sata.c | 2 | ||||
-rw-r--r-- | drivers/block/libata.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/fsl_sata.c b/drivers/block/fsl_sata.c index d441a30..55f593a 100644 --- a/drivers/block/fsl_sata.c +++ b/drivers/block/fsl_sata.c @@ -510,7 +510,7 @@ static int fsl_sata_exec_cmd(struct fsl_sata *sata, struct cfis *cfis, int rc; if (tag > SATA_HC_MAX_CMD || tag < 0) { - printf("tag is out of range, tag=\n\r", tag); + printf("tag is out of range, tag=%d\n\r", tag); return -1; } diff --git a/drivers/block/libata.c b/drivers/block/libata.c index 90e9a43..65b0203 100644 --- a/drivers/block/libata.c +++ b/drivers/block/libata.c @@ -107,7 +107,7 @@ void ata_dump_id(u16 *id) /* Total sectors of device */ n_sectors = ata_id_n_sectors(id); - printf("Capablity: %d sectors\n\r", n_sectors); + printf("Capablity: %lld sectors\n\r", n_sectors); printf ("id[49]: capabilities = 0x%04x\n" "id[53]: field valid = 0x%04x\n" |