Re: [PATCH for-next] RDMA/core: Fix incorrect print format specifier

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

 



On 2021/6/22 2:41, Jason Gunthorpe wrote:
> On Thu, Jun 10, 2021 at 07:40:32PM +0800, Weihang Li wrote:
>> From: Wenpeng Liang <liangwenpeng@xxxxxxxxxx>
>>
>> There are some '%u' for 'int' and '%d' for 'unsigend int', they should be
>> fixed.
> 
> What tool found these? Mildly surprised normal gcc doesn't complain
>  

They were found by Coverity. I'm using GCC 10.2.0, it can't find the misused
'%u' and '%d', it can only find the case of using '%s' for a integer.

Weihang

>> Signed-off-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx>
>> Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx>
>> ---
>>  drivers/infiniband/core/cache.c       | 10 +++++-----
>>  drivers/infiniband/core/cm.c          |  2 +-
>>  drivers/infiniband/core/iwpm_msg.c    | 22 +++++++++++-----------
>>  drivers/infiniband/core/iwpm_util.c   |  4 ++--
>>  drivers/infiniband/core/mad.c         | 10 +++++-----
>>  drivers/infiniband/core/netlink.c     |  2 +-
>>  drivers/infiniband/core/rw.c          |  8 ++++----
>>  drivers/infiniband/core/security.c    |  2 +-
>>  drivers/infiniband/core/sysfs.c       | 10 +++++-----
>>  drivers/infiniband/core/ud_header.c   |  8 ++++----
>>  drivers/infiniband/core/umem_odp.c    |  2 +-
>>  drivers/infiniband/core/user_mad.c    |  4 ++--
>>  drivers/infiniband/core/uverbs_cmd.c  |  2 +-
>>  drivers/infiniband/core/uverbs_uapi.c |  2 +-
>>  drivers/infiniband/core/verbs.c       |  2 +-
>>  15 files changed, 45 insertions(+), 45 deletions(-)
> 
> Applied to for-next, thanks
> 
> Jason
> 




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux