* [PATCH] lpfc: fix printk format warning
@ 2006-10-24 4:47 Randy Dunlap
2006-10-24 11:46 ` James Smart
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2006-10-24 4:47 UTC (permalink / raw)
To: scsi; +Cc: james.smart, jejb, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
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 <randy.dunlap@oracle.com>
---
drivers/scsi/lpfc/lpfc_attr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
--- linux-2619-rc3-pv.orig/drivers/scsi/lpfc/lpfc_attr.c
+++ linux-2619-rc3-pv/drivers/scsi/lpfc/lpfc_attr.c
@@ -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);
}
---
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] lpfc: fix printk format warning
2006-10-24 4:47 [PATCH] lpfc: fix printk format warning Randy Dunlap
@ 2006-10-24 11:46 ` James Smart
0 siblings, 0 replies; 2+ messages in thread
From: James Smart @ 2006-10-24 11:46 UTC (permalink / raw)
To: Randy Dunlap; +Cc: scsi, jejb, akpm
ack...
-- james s
Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> 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 <randy.dunlap@oracle.com>
> ---
>
> drivers/scsi/lpfc/lpfc_attr.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-2619-rc3-pv.orig/drivers/scsi/lpfc/lpfc_attr.c
> +++ linux-2619-rc3-pv/drivers/scsi/lpfc/lpfc_attr.c
> @@ -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);
> }
>
>
>
>
> ---
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-24 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-24 4:47 [PATCH] lpfc: fix printk format warning Randy Dunlap
2006-10-24 11:46 ` James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox