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  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1853148] Re: mingw compiler problem with printf/scanf formats
From: Martin Konrad via Core-talk <[email protected]>
To: [email protected]
Date: Tue, 19 Nov 2019 13:58:01 -0000
Have you tried something like the following?

printf("dbjl_integer(%s@%p, %"PRId64")\n", pjlink->pif->name, pjlink,
num);

You might need to include <inttypes.h>. Also see
https://bugs.launchpad.net/epics-base/+bug/1740426.

-- 
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/1853148

Title:
  mingw compiler problem with printf/scanf formats

Status in EPICS Base:
  New

Bug description:
  ../db/dbJLink.c: In function ‘dbjl_integer’:
  ../db/dbJLink.c:136:16: warning: unknown conversion type character ‘l’ in format [-Wformat=]
           printf("dbjl_integer(%s@%p, %lld)\n",
                  ^
  ../db/dbJLink.c:136:16: warning: too many arguments for format [-Wformat-extra-args]

  
  It seems that mingw does not like "%lld".

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

References:
[Bug 1853148] [NEW] mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk

Navigate by Date:
Prev: [Bug 1853148] Re: mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk
Next: [Bug 1853148] Re: mingw compiler problem with printf/scanf formats Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: [Bug 1853148] Re: mingw compiler problem in dbJLink.c Dirk Zimoch via Core-talk
Next: [Bug 1853148] Re: mingw compiler problem with printf/scanf formats Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 19 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·