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

Subject: [Merge] ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15
From: Martin Konrad via Core-talk <core-talk at aps.anl.gov>
To: mp+378400 at code.launchpad.net
Date: Fri, 31 Jan 2020 15:43:23 -0000
Martin Konrad has proposed merging ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15.

Requested reviews:
  EPICS Core Developers (epics-core)

For more details, see:
https://code.launchpad.net/~info-martin-konrad/epics-base/+git/epics-base/+merge/378400
-- 
Your team EPICS Core Developers is requested to review the proposed merge of ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15.
diff --git a/src/std/rec/stateRecord.c b/src/std/rec/stateRecord.c
index 8170de7..cb3dcfd 100644
--- a/src/std/rec/stateRecord.c
+++ b/src/std/rec/stateRecord.c
@@ -28,6 +28,7 @@
 #include "errMdef.h"
 #include "recSup.h"
 #include "recGbl.h"
+#include "errlog.h"
 
 #define GEN_SIZE_OFFSET
 #include "stateRecord.h"
@@ -37,7 +38,7 @@
 /* Create RSET - Record Support Entry Table*/
 #define report NULL
 #define initialize NULL
-#define init_record NULL
+static long init_record(stateRecord *prec, int pass);
 static long process(stateRecord *);
 #define special NULL
 #define get_value NULL
@@ -75,6 +76,19 @@ rset stateRSET={
 };
 epicsExportAddress(rset,stateRSET);
 
+static long init_record(stateRecord *prec, int pass)
+{
+    if(pass == 0) {
+        errlogPrintf(
+            "WARNING: Using deprecated record type \"state\" for record "
+            "\"%s\". This record type will be removed from future EPICS "
+            "versions. Please replace it by a stringin/mbbi record.\n",
+            prec->name
+        );
+    }
+    return 0;
+}
+
 static void monitor(stateRecord *);
 
 static long process(stateRecord *prec)

Replies:
Re: [Merge] ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15 Martin Konrad via Core-talk
[Merge] ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15 Martin Konrad via Core-talk

Navigate by Date:
Prev: Build failed in Jenkins: epics-7.0 » linux32 #189 APS Jenkins via Core-talk
Next: Re: [Merge] ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15 Martin Konrad via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Jenkins build is back to stable : epics-7.0 » linux32 #192 APS Jenkins via Core-talk
Next: Re: [Merge] ~info-martin-konrad/epics-base:deprecation-warning-state-record into epics-base:3.15 Martin Konrad via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 13 Feb 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·