Hi John,
Beginning with Base 3.15.6, code can opt-out of the printf and stdout redefinitions.
#define epicsStdioStdPrintfEtc
#define epicsStdioStdStreams
#include <epicsStdio.h>
https://github.com/epics-base/epics-base/blob/5aca4c684cc87158ded4c4d4c3303b4c018e43fa/modules/libcom/src/osi/epicsStdio.h#L35-L54
On 9/20/23 04:51, Priller, John via Tech-talk wrote:
But as advertised, that's a kludge. What I should *probably* do is replace all my printf()s with epicsStdoutPrintf()s, but that's a lot of code revision, so for now I'm going with my work-around on changing order of includes.
I tend to avoid including epicsStdio.h unless I really need to (iocsh functions),
or call epicsStdoutPrintf() explicitly. I have had conflicts with other headers.
eg. those which use constructs like GCC "__attribute__((printf...".
- References:
- EPICS 7 bug with epicsStdioRedirect.h / epicsTime.h Priller, John via Tech-talk
- Navigate by Date:
- Prev:
Re: Use sscan with transform record coordinate motion Mark Rivers via Tech-talk
- Next:
Re: 回覆: EPICS support for PI E-500 piezo controller Torsten Bögershausen via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
<2023>
2024
- Navigate by Thread:
- Prev:
EPICS 7 bug with epicsStdioRedirect.h / epicsTime.h Priller, John via Tech-talk
- Next:
Re: 回覆: EPICS support for PI E-500 piezo controller Torsten Bögershausen via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
<2023>
2024
|