Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
<== Date ==> <== Thread ==>

Subject: asynPrint to print asyn port name
From: <ulrik.pedersen@diamond.ac.uk>
To: <tech-talk@aps.anl.gov>
Date: Wed, 24 Apr 2013 08:51:39 +0000

Hello,

 

When writing asyn drivers I find myself using plenty of asynPrint calls to trace execution, debug etc. For each call I often find myself adding the current drivers asyn portname – and also often the asyn address.

 

The reason that I add the asyn port name to the asynPrint is of course to allow quickly identifying which asyn port is spewing out the message. In particular on operational systems with many devices and asyn drivers I usually have ASYN_TRACE_ERROR enabled by default – and then struggle to figure out which driver produced the error message.

 

Would it be possible to add printing of the asyn port name – and possibly the address – to the asynPrint call by default?

 

I think the relevant bit of code is in asyn/asynDriver/asynManger.c   - but the code there is rather more complex than I had imagined... :-)

 

Cheers,

Ulrik

 


 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 



Replies:
Re: asynPrint to print asyn port name Mark Davis
RE: asynPrint to print asyn port name Mark Rivers

Navigate by Date:
Prev: Re: Calling ca_context_create(1) too late Andrew Johnson
Next: Re: asynPrint to print asyn port name Mark Davis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
Navigate by Thread:
Prev: Re: the cheksum of Streamdevice Dirk Zimoch
Next: Re: asynPrint to print asyn port name Mark Davis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·