Re: [PATCH] scsi: esas2r: Fix inconsistent of format with argument type

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

 



Hello Ye,

> @@ -310,7 +310,7 @@ static void esas2r_complete_vda_ioctl(struct esas2r_adapter *a,
>  				le32_to_cpu(rsp->vda_version);
>  			cfg->data.init.fw_build = rsp->fw_build;
>  
> -			snprintf(buf, sizeof(buf), "%1.1u.%2.2u",
> +			snprintf(buf, sizeof(buf), "%1.1d.%2.2d",
>  				 (int)LOBYTE(le16_to_cpu(rsp->fw_release)),
>  				 (int)HIBYTE(le16_to_cpu(rsp->fw_release)));

I doubt the firmware release is a negative number.

-- 
Martin K. Petersen	Oracle Linux Engineering



[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