lpfc: fix printk format warning
Subsystems (2)
PATCH 1/1 lpfc: fix printk format warning
From: Randy Dunlap <[email protected]>
Fix printk format warning:drivers/scsi/lpfc/lpfc_attr.c:597: warning: long long unsigned int format, uint64_t arg (arg 4)
Signed-off-by Randy Dunlap <[email protected]>
---
drivers/scsi/lpfc/lpfc_attr.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_attr.c +2 -1
@@ -594,7 +594,8 @@ lpfc_soft_wwpn_show(struct class_device {struct Scsi_Host *host =class_to_shost (cdev);struct lpfc_hba *phba = (struct lpfc_hba *)host->hostdata; -return snprintf (buf,PAGE_SIZE ,"0x%llx\n" , phba->cfg_soft_wwpn); +return snprintf (buf,PAGE_SIZE ,"0x%llx\n" , + (unsigned long long )phba->cfg_soft_wwpn); }
---
ack...
-- james s
Quoted 27 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix printk format warning:
drivers/scsi/lpfc/lpfc_attr.c:597: warning: long long unsigned int format,uint64_targ (arg 4)Signed-off-by Randy Dunlap <[email protected]>---
drivers/scsi/lpfc/lpfc_attr.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)drivers/scsi/lpfc/lpfc_attr.c +2
-2@@ -594,7 +594,8 @@ lpfc_soft_wwpn_show(struct class_device {struct Scsi_Host *host =class_to_shost (cdev);struct lpfc_hba *phba = (struct lpfc_hba *)host->hostdata; -return snprintf (buf,PAGE_SIZE ,"0x%llx\n" , phba->cfg_soft_wwpn); +return snprintf (buf,PAGE_SIZE ,"0x%llx\n" , + (unsigned long long )phba->cfg_soft_wwpn); } ---