drivers/scsi/mvsas.c: fix build warnings
PATCH 15/17 drivers/scsi/mvsas.c: fix build warnings
From: Andrew Morton <[email protected]>
powerpc:
drivers/scsi/mvsas.c: In function 'mvs_update_phyinfo':drivers/scsi/mvsas.c:2536: warning: format '%llX' expects type 'long long unsigned int', but argument 5 has type 'u64' drivers/scsi/mvsas.c:2536: warning: format '%llX' expects type 'long long unsigned int', but argument 6 has type 'u64'
we do not know what type the architecture uses to implement u64 hence we cannot print them directly.
Cc James Bottomley <[email protected]>
Cc Oliver Pinter <[email protected]>
Cc Ke Wei <[email protected]>
Cc Jeff Garzik <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/mvsas.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/scsi/mvsas.c renamed from drivers/scsi/mvsas.c~drivers-scsi-mvsasc-fix-build-warnings +3 -1
@@ -2536,7 +2536,9 @@ static void mvs_update_phyinfo(struct mvdev_printk (KERN_DEBUG , &pdev->dev,"phy[%d] Get Attached Address 0x%llX ," " SAS Address 0x%llX\n" , - i, phy->att_dev_sas_addr, phy->dev_sas_addr); + i, + (unsigned long long )phy->att_dev_sas_addr, + (unsigned long long )phy->dev_sas_addr);dev_printk (KERN_DEBUG , &pdev->dev,"Rate = %x , type = %d\n" , sas_phy->linkrate, phy->phy_type);
_