Skip to contentSkip to conversation

lpfc: fix printk format warning

PATCH In review Randy Dunlap 2 participants 2 messages Oct 24, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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)

---

 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);
 }
 
 

---

#1 lore raw

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_t arg (arg 4)

---

 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);
 }
 
 
 
 
---