From: Marek Vasut Date: Fri, 21 Oct 2011 14:17:16 +0000 (+0000) Subject: GCC4.6: Squash warnings in ahci.c X-Git-Tag: v2011.12-rc1~368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a928ed9640da117b91e4bf9a4bcc3562525a78b;p=kernel%2Fu-boot.git GCC4.6: Squash warnings in ahci.c ahci.c: In function 'ahci_port_start': ahci.c:401: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct ahci_cmd_hdr *' Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 64f52bb..015b341 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -398,7 +398,7 @@ static int ahci_port_start(u8 port) * 32 bytes each in size */ pp->cmd_slot = (struct ahci_cmd_hdr *)mem; - debug("cmd_slot = 0x%x\n", pp->cmd_slot); + debug("cmd_slot = %p\n", pp->cmd_slot); mem += (AHCI_CMD_SLOT_SZ + 224); /*