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

Subject: [Bug 1983385] Re: iocLogPrefix incompatible with VxWorks logMsg
From: Dirk Zimoch via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Wed, 03 Aug 2022 06:46:54 -0000
I am working with 7.0.6, based on commit 59124459 (tag R7.0.6)
I will try your modifications.

The origin of the problem is that the code in modules/libcom/src/osi/os/vxWorks/logMsgToErrlog.cpp implements a low-level i/o write() function that is called multiple times per logMsg (once for each format and once for each literal string in between) but it calls the high-level i/o function errlogPrintfNoConsole which expects whole messages, not fragments.
Thus, not only the whole message gets prefixed but each fragment.

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

Title:
  iocLogPrefix incompatible with VxWorks logMsg

Status in EPICS Base:
  New

Bug description:
  When defining a iocLogPrefix, messages generated with logMsg on
  VxWorks contain the prefix before and after each format specifier,
  including those generated by the system for thread id. No problem with
  errlogPrintf though.

  On the VxWorks shell I do:
  iocLogPrefix "[PREFIX]"
  errlogPrintf "with errlogPrintf %s number %d\n", "hello",3
  logMsg "with logMsg %s number %d\n", "hello",3

  On the log server I see:
  [PREFIX]with errlogPrintf hello number 3
  [PREFIX]0x[PREFIX]574140[PREFIX] ([PREFIX]tShell0[PREFIX]): [PREFIX]with logMsg [PREFIX]hello[PREFIX] number [PREFIX]3[PREFIX]

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


References:
[Bug 1983385] [NEW] iocLogPrefix incompatible with VxWorks logMsg Dirk Zimoch via Core-talk

Navigate by Date:
Prev: [Bug 1983385] Re: iocLogPrefix incompatible with VxWorks logMsg mdavidsaver via Core-talk
Next: [Bug 1983472] [NEW] Format %z unknown to vxWorks Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: [Bug 1983385] Re: iocLogPrefix incompatible with VxWorks logMsg mdavidsaver via Core-talk
Next: [Bug 1983385] Re: iocLogPrefix incompatible with VxWorks logMsg Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·