Thread (3 messages) 3 messages, 2 authors, 2021-06-22

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

From: liweihang <hidden>
Date: 2021-06-22 03:39:52

On 2021/6/22 2:41, Jason Gunthorpe wrote:
On Thu, Jun 10, 2021 at 07:40:32PM +0800, Weihang Li wrote:
quoted
From: Wenpeng Liang <redacted>

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
quoted
Signed-off-by: Wenpeng Liang <redacted>
Signed-off-by: Weihang Li <redacted>
---
 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
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help