EPICS Controls 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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: dbGetSevr on epics 3.14.11
From: Ralph Lange <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 26 Aug 2010 11:23:14 -0400
Hi Stephanie,

thanks for reporting this issue!

The bug was introduced by (me) merging in Codeathon 2009 work (revision 11653, 3 Apr 2009), so it only affects 3.14.11, no earlier versions.
It has been fixed on the 3.14 branch (revision 12087, 19 Jul 2010).
I created a patch file (attached), and pushed this patch to the 3.14.11+patches branch on Launchpad.


@Andrew: Could you add the issue and the patch file to the Known Problems page for 3.14.11, please? I don't know if or how I could do web site changes remotely.

Thanks again,
Ralph


On 25.08.2010 21:41, Allison, Stephanie wrote:
Hello,

I'm upgrading from 3.14.8.2 to 3.14.11 and found a problem with dbGetSevr. dbGetSevr used to be a prototype in 3.14.8.2 and is now a macro in dbAccessDefs.h:

#define dbGetSevr(PLINK,PSEVERITY) \
     dbGetAlarm((PLINK),NULL,(PSEVERITY));

That ";" at the end causes problems (ie:   if (dbGetSevr(plink,&severity)) break;)
and should be removed.

Thank you,
Stephanie Allison

=== modified file 'src/db/dbAccessDefs.h'
--- src/db/dbAccessDefs.h	2009-04-03 20:54:00 +0000
+++ src/db/dbAccessDefs.h	2010-08-26 15:08:08 +0000
@@ -216,7 +216,7 @@
       ? 0 \
       : ( ( (struct dbAddr *)( (PLNK)->value.pv_link.pvt) ) ) )
 #define dbGetSevr(PLINK,PSEVERITY) \
-    dbGetAlarm((PLINK),NULL,(PSEVERITY));
+    dbGetAlarm((PLINK),NULL,(PSEVERITY))
 
 epicsShareFunc long epicsShareAPI dbPutSpecial(struct dbAddr *paddr,int pass);
 epicsShareFunc struct rset * epicsShareAPI dbGetRset(const struct dbAddr *paddr);


Replies:
RE: dbGetSevr on epics 3.14.11 Allison, Stephanie
References:
dbGetSevr on epics 3.14.11 Allison, Stephanie

Navigate by Date:
Prev: Re: msi again Benjamin Franksen
Next: position available at APS in Software Services Group Claude Saunders
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: dbGetSevr on epics 3.14.11 Allison, Stephanie
Next: RE: dbGetSevr on epics 3.14.11 Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·