Warn if deprecated state record is used
This commit is contained in:
committed by
Michael Davidsaver
parent
8709fbb63f
commit
fd5edce919
@@ -54,6 +54,12 @@ caget is itself being run from a shell script.
|
||||
caRepeater will now understand the '-v' argument to retain stdin/out/err
|
||||
which may be necessary to see any error messages it may emit.
|
||||
|
||||
### `state` record deprecated
|
||||
|
||||
IOCs now emit a warning when a database file containing the `state` record is
|
||||
loaded. This record has been deprecated for a while and will be removed
|
||||
beginning with EPICS 7.1. Consider using the `stringin` record instead.
|
||||
|
||||
## EPICS Release 7.0.3.1
|
||||
|
||||
**IMPORTANT NOTE:** *Some record types in this release will not be compatible
|
||||
|
||||
@@ -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(struct dbCommon *prec, int pass);
|
||||
static long process(struct dbCommon *);
|
||||
#define special NULL
|
||||
#define get_value NULL
|
||||
@@ -77,6 +78,19 @@ epicsExportAddress(rset,stateRSET);
|
||||
|
||||
static void monitor(stateRecord *);
|
||||
|
||||
static long init_record(struct dbCommon *prec, int pass)
|
||||
{
|
||||
if(pass == 0) {
|
||||
errlogPrintf(
|
||||
"WARNING: Using deprecated record type \"state\" for record "
|
||||
"\"%s\".\nThis record type will be removed beginning with EPICS "
|
||||
"7.1. Please replace it\nby a stringin record.\n",
|
||||
prec->name
|
||||
);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static long process(struct dbCommon *pcommon)
|
||||
{
|
||||
struct stateRecord *prec = (struct stateRecord *)pcommon;
|
||||
|
||||
Reference in New Issue
Block a user