Re: [PATCH] libfc: fix printk format warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 18 Feb 2009 13:12:38 -0800
Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:

> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> 
> Fix libfc printk format warnings:
> 
> drivers/scsi/libfc/fc_lport.c:788: warning: long long unsigned int format, u64 arg (arg 3)
> drivers/scsi/libfc/fc_lport.c:792: warning: long long unsigned int format, u64 arg (arg 3)
> drivers/scsi/libfc/fc_rport.c:968: warning: long long unsigned int format, u64 arg (arg 4)
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> ---
>  drivers/scsi/libfc/fc_lport.c |    5 +++--
>  drivers/scsi/libfc/fc_rport.c |    2 +-
>  2 files changed, 4 insertions(+), 3 deletions(-)

The identical patch is in scsi-misc?

http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commitdiff;h=e109928f140e3cbd5bfeacb5c0d2b2e820b11be5


> --- lnx2629-rc5-docsrc.orig/drivers/scsi/libfc/fc_lport.c
> +++ lnx2629-rc5-docsrc/drivers/scsi/libfc/fc_lport.c
> @@ -786,10 +786,11 @@ static void fc_lport_recv_flogi_req(stru
>  	remote_wwpn = get_unaligned_be64(&flp->fl_wwpn);
>  	if (remote_wwpn == lport->wwpn) {
>  		FC_DBG("FLOGI from port with same WWPN %llx "
> -		       "possible configuration error\n", remote_wwpn);
> +		       "possible configuration error\n",
> +		       (unsigned long long)remote_wwpn);
>  		goto out;
>  	}
> -	FC_DBG("FLOGI from port WWPN %llx\n", remote_wwpn);
> +	FC_DBG("FLOGI from port WWPN %llx\n", (unsigned long long)remote_wwpn);
>  
>  	/*
>  	 * XXX what is the right thing to do for FIDs?
> --- lnx2629-rc5-docsrc.orig/drivers/scsi/libfc/fc_rport.c
> +++ lnx2629-rc5-docsrc/drivers/scsi/libfc/fc_rport.c
> @@ -966,7 +966,7 @@ static void fc_rport_recv_plogi_req(stru
>  	switch (rdata->rp_state) {
>  	case RPORT_ST_INIT:
>  		FC_DEBUG_RPORT("incoming PLOGI from %6x wwpn %llx state INIT "
> -			       "- reject\n", sid, wwpn);
> +			       "- reject\n", sid, (unsigned long long)wwpn);
>  		reject = ELS_RJT_UNSUP;
>  		break;
>  	case RPORT_ST_PLOGI:
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux