]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sata_sil3114: fix compiler warning
authorKim Phillips <kim.phillips@freescale.com>
Wed, 18 Feb 2009 23:43:59 +0000 (17:43 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 18 Feb 2009 23:37:18 +0000 (00:37 +0100)
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>
drivers/block/sata_sil3114.c

index 351cf993cc3bb0202609bcb2fd4b91bf5a542472..62cc99d3953b932352ceafd9ec9142380e4f99da 100644 (file)
@@ -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;