]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: pata_bfin: fix printf warning
authorMike Frysinger <vapier@gentoo.org>
Fri, 3 Feb 2012 13:04:22 +0000 (08:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 12 Feb 2012 20:03:26 +0000 (15:03 -0500)
pata_bfin.c: In function 'bfin_ata_identify':
pata_bfin.c:887:2: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'lbaint_t'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/block/pata_bfin.c

index 847c03226a6d161556084c2de9fff9397da6e6bf..cce21fbc5409bc9b0f206c3bb2b72e0f282c52c9 100644 (file)
@@ -884,7 +884,7 @@ static void bfin_ata_identify(struct ata_port *ap, int dev)
                sata_dev_desc[ap->port_no].removable = 0;
 
        sata_dev_desc[ap->port_no].lba = (u32) n_sectors;
-       debug("lba=0x%x\n", sata_dev_desc[ap->port_no].lba);
+       debug("lba=0x%lx\n", sata_dev_desc[ap->port_no].lba);
 
 #ifdef CONFIG_LBA48
        if (iop->command_set_2 & 0x0400)