summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2009-02-18 17:43:59 -0600
committerWolfgang Denk <wd@denx.de>2009-02-19 00:37:18 +0100
commit369d0aa9674b65c83f8553b9bcf9d207dc369223 (patch)
tree62390d9f8c0b0c1af3eb613591a4f86ac2703c78 /drivers
parentf5675aa5ceeef30740970ab8ca0c8cbc324945cd (diff)
downloadu-boot-imx-369d0aa9674b65c83f8553b9bcf9d207dc369223.zip
u-boot-imx-369d0aa9674b65c83f8553b9bcf9d207dc369223.tar.gz
u-boot-imx-369d0aa9674b65c83f8553b9bcf9d207dc369223.tar.bz2
sata_sil3114: fix compiler warning
judging from other printfs in the same file, it seems ata should be postpended with the interface number, not the address of the global port variable. Fixes this for current u-boot-mpc83xx tree: Configuring for MPC8349ITX board... sata_sil3114.c: In function 'sata_bus_softreset': sata_sil3114.c:99: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'struct sata_port *' sata_sil3114.c:108: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'struct sata_port *' Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/sata_sil3114.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/sata_sil3114.c b/drivers/block/sata_sil3114.c
index 351cf99..62cc99d 100644
--- a/drivers/block/sata_sil3114.c
+++ b/drivers/block/sata_sil3114.c
@@ -96,7 +96,7 @@ static int sata_bus_softreset (int num)
}
if (status & ATA_BUSY) {
- printf ("ata%u is slow to respond,plz be patient\n", port);
+ printf ("ata%u is slow to respond,plz be patient\n", num);
}
while ((status & ATA_BUSY)) {
@@ -105,7 +105,7 @@ static int sata_bus_softreset (int num)
}
if (status & ATA_BUSY) {
- printf ("ata%u failed to respond : ", port);
+ printf ("ata%u failed to respond : ", num);
printf ("bus reset failed\n");
port[num].dev_mask = 0;
return 1;