Hi Andrew,
> > Is there a way to send a message to errlog (via errlogPrintf without
> > arguments) by a user at the iocsh prompt? This can be done already at the
> > Cexp prompt for RTEMS iocs - it would be nice to have similar functionality
> > for soft iocs. I notice that errlogInit is registered at the iocsh but not
> > errlogPrintf (or something that calls of errlogPrintf). Could this be
> > added to base/src/libCom/iocsh/libComRegister.c? Otherwise, I'll add it to
> > devIocStats.
>
> I think that's a quite reasonable thing to add to Base. The only question I
> have is should it call errlogPrintf() or
> errlogPrintfNoConsole()? My guess
> is the latter since the command should be printed out as it is being
> executed, but admittedly that won't include the expanded value of any macros
> used in the message string. I guess it wouldn't be hard to provide both
> options though.
Since we don't allow the "printf" arguments, to prevent someone from adding arguments thinking they'll be used, it's probably best to call these:
errlogMessage
and
errlogMessageNoConsole
We could provide just one routine "errlogMessage" with a second optional argument with the console/noconsole flag though that doesn't match the real errlogMessage prototype and could cause confusion. (Though maybe we could also change the errlogMessage function to add a second argument?). Maybe providing both is best even though it adds to the proliferation of registered functions.
Thanks,
Stephanie
- Replies:
- Re: errlogPrintf from iocsh for soft IOCs? Eric Norum
- References:
- errlogPrintf from iocsh for soft IOCs? Allison, Stephanie
- Re: errlogPrintf from iocsh for soft IOCs? Andrew Johnson
- Navigate by Date:
- Prev:
Re: errlogPrintf from iocsh for soft IOCs? Andrew Johnson
- Next:
Re: errlogPrintf from iocsh for soft IOCs? Eric Norum
- 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:
Re: errlogPrintf from iocsh for soft IOCs? Andrew Johnson
- Next:
Re: errlogPrintf from iocsh for soft IOCs? Eric Norum
- 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
|