use recGblSetSevrMsg()
This commit is contained in:
@@ -63,7 +63,7 @@ static long read_lsi(lsiRecord *prec)
|
||||
prec->val[0] = 0;
|
||||
prec->len = 1;
|
||||
prec->udf = TRUE;
|
||||
recGblSetSevr(prec, UDF_ALARM, prec->udfs);
|
||||
recGblSetSevrMsg(prec, UDF_ALARM, prec->udfs, "No such ENV");
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -114,7 +114,7 @@ static long read_stringin(stringinRecord *prec)
|
||||
else {
|
||||
prec->val[0] = 0;
|
||||
prec->udf = TRUE;
|
||||
recGblSetSevr(prec, UDF_ALARM, prec->udfs);
|
||||
recGblSetSevrMsg(prec, UDF_ALARM, prec->udfs, "No such ENV");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -432,7 +432,7 @@ static void convert(aiRecord *prec)
|
||||
|
||||
default: /* must use breakpoint table */
|
||||
if (cvtRawToEngBpt(&val,prec->linr,prec->init,(void *)&prec->pbrk,&prec->lbrk)!=0) {
|
||||
recGblSetSevr(prec,SOFT_ALARM,MAJOR_ALARM);
|
||||
recGblSetSevrMsg(prec,SOFT_ALARM,MAJOR_ALARM, "BPT Error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ static long process(struct dbCommon *pcommon)
|
||||
}
|
||||
if (fetch_values(prec) == 0) {
|
||||
if (calcPerform(&prec->a, &prec->val, prec->rpcl)) {
|
||||
recGblSetSevr(prec, CALC_ALARM, INVALID_ALARM);
|
||||
recGblSetSevrMsg(prec, CALC_ALARM, INVALID_ALARM, "calcPerform");
|
||||
} else {
|
||||
prec->udf = isnan(prec->val);
|
||||
}
|
||||
@@ -610,7 +610,7 @@ static void execOutput(calcoutRecord *prec)
|
||||
break;
|
||||
case calcoutDOPT_Use_OVAL:
|
||||
if (calcPerform(&prec->a, &prec->oval, prec->orpc)) {
|
||||
recGblSetSevr(prec, CALC_ALARM, INVALID_ALARM);
|
||||
recGblSetSevrMsg(prec, CALC_ALARM, INVALID_ALARM, "OCAL calcPerform");
|
||||
} else {
|
||||
prec->udf = isnan(prec->oval);
|
||||
}
|
||||
@@ -770,7 +770,7 @@ static long writeValue(calcoutRecord *prec)
|
||||
|
||||
if (!pcalcoutDSET || !pcalcoutDSET->write) {
|
||||
errlogPrintf("%s DSET write does not exist\n", prec->name);
|
||||
recGblSetSevr(prec, SOFT_ALARM, INVALID_ALARM);
|
||||
recGblSetSevrMsg(prec, SOFT_ALARM, INVALID_ALARM, "DSET write does not exist");
|
||||
prec->pact = TRUE;
|
||||
return(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user