EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1863088] [NEW] Mismatching printf format strings and arguments
From: Karl Vestin via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Thu, 13 Feb 2020 11:37:18 -0000
Public bug reported:

Codacy reports a nuber of warning level issues on cases where the format
string of a printf does not match the types of the actual arguments.
Most commonly the mismatch is signed vs unsigned integers.

Patterns;
%i in format string (no. 1) requires 'int' but the argument type is Unknown. (cppcheck)
%u in format string (no. 1) requires 'unsigned int' but the argument type is Unknown. (cppcheck)
%d in format string (no. 1) requires 'int *' but the argument type is Unknown.  (cppcheck)

Codacy links:
https://app.codacy.com/gh/epics-base/epics-base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIxODEiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

https://app.codacy.com/gh/epics-base/epics-
base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIxNTIiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

https://app.codacy.com/gh/epics-base/epics-
base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIyMzkiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

** Affects: epics-base
     Importance: Undecided
         Status: New


** Tags: codacy

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1863088

Title:
  Mismatching printf format strings and arguments

Status in EPICS Base:
  New

Bug description:
  Codacy reports a nuber of warning level issues on cases where the
  format string of a printf does not match the types of the actual
  arguments. Most commonly the mismatch is signed vs unsigned integers.

  Patterns;
  %i in format string (no. 1) requires 'int' but the argument type is Unknown. (cppcheck)
  %u in format string (no. 1) requires 'unsigned int' but the argument type is Unknown. (cppcheck)
  %d in format string (no. 1) requires 'int *' but the argument type is Unknown.  (cppcheck)

  Codacy links:
  https://app.codacy.com/gh/epics-base/epics-base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIxODEiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

  https://app.codacy.com/gh/epics-base/epics-
  base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIxNTIiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

  https://app.codacy.com/gh/epics-base/epics-
  base/issues?bid=16430872&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6W119LHsiaWQiOiJMZXZlbCIsInZhbHVlcyI6WyJXYXJuaW5nIl19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbIjIyMzkiXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W119XQ==

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1863088/+subscriptions

Navigate by Date:
Prev: Two flavors of unused variable values Karl Vestin via Core-talk
Next: Re: Two flavors of unused variable values Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Two flavors of unused variable values Michael Davidsaver via Core-talk
Next: [Bug 1863118] [NEW] Possible null pointer dereferencing in modules/libcom/src/osi/os/WIN32/osdThread.c Karl Vestin via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 13 Feb 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·