From 4715043141e88115f3861937ce965d7c7c55f36d Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Fri, 3 Apr 2009 15:45:03 +0000 Subject: [PATCH] Rename of pxxx -> prec in device supports --- src/dev/softDev/devAoSoft.c | 6 +-- src/dev/softDev/devAoSoftCallback.c | 14 +++---- src/dev/softDev/devAoSoftRaw.c | 6 +-- src/dev/softDev/devBoSoft.c | 6 +-- src/dev/softDev/devBoSoftCallback.c | 14 +++---- src/dev/softDev/devBoSoftRaw.c | 6 +-- src/dev/softDev/devCalcoutSoft.c | 4 +- src/dev/softDev/devCalcoutSoftCallback.c | 14 +++---- src/dev/softDev/devHistogramSoft.c | 14 +++---- src/dev/softDev/devLoSoft.c | 6 +-- src/dev/softDev/devLoSoftCallback.c | 14 +++---- src/dev/softDev/devMbboDirectSoft.c | 6 +-- src/dev/softDev/devMbboDirectSoftCallback.c | 14 +++---- src/dev/softDev/devMbboDirectSoftRaw.c | 14 +++---- src/dev/softDev/devMbboSoft.c | 6 +-- src/dev/softDev/devMbboSoftCallback.c | 14 +++---- src/dev/softDev/devMbboSoftRaw.c | 12 +++--- src/dev/softDev/devSoSoft.c | 4 +- src/dev/softDev/devSoSoftCallback.c | 14 +++---- src/dev/testDev/devHistogramTestAsyn.c | 44 ++++++++++----------- 20 files changed, 116 insertions(+), 116 deletions(-) diff --git a/src/dev/softDev/devAoSoft.c b/src/dev/softDev/devAoSoft.c index fe92592ab..fcd982bf6 100644 --- a/src/dev/softDev/devAoSoft.c +++ b/src/dev/softDev/devAoSoft.c @@ -56,7 +56,7 @@ struct { epicsExportAddress(dset,devAoSoft); -static long init_record(aoRecord *pao) +static long init_record(aoRecord *prec) { long status=0; @@ -65,11 +65,11 @@ static long init_record(aoRecord *pao) } /* end init_record() */ -static long write_ao(aoRecord *pao) +static long write_ao(aoRecord *prec) { long status; - status = dbPutLink(&pao->out,DBR_DOUBLE, &pao->oval,1); + status = dbPutLink(&prec->out,DBR_DOUBLE, &prec->oval,1); return(status); } diff --git a/src/dev/softDev/devAoSoftCallback.c b/src/dev/softDev/devAoSoftCallback.c index 7eddebb89..cb1aee2bf 100644 --- a/src/dev/softDev/devAoSoftCallback.c +++ b/src/dev/softDev/devAoSoftCallback.c @@ -49,22 +49,22 @@ struct { NULL}; epicsExportAddress(dset,devAoSoftCallback); -static long write_ao(aoRecord *pao) +static long write_ao(aoRecord *prec) { - struct link *plink = &pao->out; + struct link *plink = &prec->out; long status; - if(pao->pact) return(0); + if(prec->pact) return(0); if(plink->type!=CA_LINK) { - status = dbPutLink(plink,DBR_DOUBLE,&pao->oval,1); + status = dbPutLink(plink,DBR_DOUBLE,&prec->oval,1); return(status); } - status = dbCaPutLinkCallback(plink,DBR_DOUBLE,&pao->oval,1, + status = dbCaPutLinkCallback(plink,DBR_DOUBLE,&prec->oval,1, (dbCaCallback)dbCaCallbackProcess,plink); if(status) { - recGblSetSevr(pao,LINK_ALARM,INVALID_ALARM); + recGblSetSevr(prec,LINK_ALARM,INVALID_ALARM); return(status); } - pao->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/dev/softDev/devAoSoftRaw.c b/src/dev/softDev/devAoSoftRaw.c index 06340e92c..6b10037c7 100644 --- a/src/dev/softDev/devAoSoftRaw.c +++ b/src/dev/softDev/devAoSoftRaw.c @@ -33,7 +33,7 @@ #include "epicsExport.h" /* Create the dset for devAoSoftRaw */ -static long write_ao(aoRecord *pao); +static long write_ao(aoRecord *prec); struct { long number; DEVSUPFUN report; @@ -53,11 +53,11 @@ struct { }; epicsExportAddress(dset,devAoSoftRaw); -static long write_ao(aoRecord *pao) +static long write_ao(aoRecord *prec) { long status; - status = dbPutLink(&pao->out,DBR_LONG,&pao->rval,1); + status = dbPutLink(&prec->out,DBR_LONG,&prec->rval,1); return(status); } diff --git a/src/dev/softDev/devBoSoft.c b/src/dev/softDev/devBoSoft.c index 3af34b26e..a630073e4 100644 --- a/src/dev/softDev/devBoSoft.c +++ b/src/dev/softDev/devBoSoft.c @@ -53,7 +53,7 @@ struct { }; epicsExportAddress(dset,devBoSoft); -static long init_record(boRecord *pbo) +static long init_record(boRecord *prec) { long status=0; @@ -64,11 +64,11 @@ static long init_record(boRecord *pbo) } /* end init_record() */ -static long write_bo(boRecord *pbo) +static long write_bo(boRecord *prec) { long status; - status = dbPutLink(&pbo->out,DBR_USHORT,&pbo->val,1); + status = dbPutLink(&prec->out,DBR_USHORT,&prec->val,1); return(status); } diff --git a/src/dev/softDev/devBoSoftCallback.c b/src/dev/softDev/devBoSoftCallback.c index cc4f472c6..9ef0d7884 100644 --- a/src/dev/softDev/devBoSoftCallback.c +++ b/src/dev/softDev/devBoSoftCallback.c @@ -49,22 +49,22 @@ struct { }; epicsExportAddress(dset,devBoSoftCallback); -static long write_bo(boRecord *pbo) +static long write_bo(boRecord *prec) { - struct link *plink = &pbo->out; + struct link *plink = &prec->out; long status; - if(pbo->pact) return(0); + if(prec->pact) return(0); if(plink->type!=CA_LINK) { - status = dbPutLink(plink,DBR_USHORT,&pbo->val,1); + status = dbPutLink(plink,DBR_USHORT,&prec->val,1); return(status); } - status = dbCaPutLinkCallback(plink,DBR_USHORT,&pbo->val,1, + status = dbCaPutLinkCallback(plink,DBR_USHORT,&prec->val,1, (dbCaCallback)dbCaCallbackProcess,plink); if(status) { - recGblSetSevr(pbo,LINK_ALARM,INVALID_ALARM); + recGblSetSevr(prec,LINK_ALARM,INVALID_ALARM); return(status); } - pbo->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/dev/softDev/devBoSoftRaw.c b/src/dev/softDev/devBoSoftRaw.c index 74490e456..a66cc864e 100644 --- a/src/dev/softDev/devBoSoftRaw.c +++ b/src/dev/softDev/devBoSoftRaw.c @@ -53,7 +53,7 @@ struct { }; epicsExportAddress(dset,devBoSoftRaw); -static long init_record(boRecord *pbo) +static long init_record(boRecord *prec) { long status; @@ -63,11 +63,11 @@ static long init_record(boRecord *pbo) } /* end init_record() */ -static long write_bo(boRecord *pbo) +static long write_bo(boRecord *prec) { long status; - status = dbPutLink(&pbo->out,DBR_LONG, &pbo->rval,1); + status = dbPutLink(&prec->out,DBR_LONG, &prec->rval,1); return(status); } diff --git a/src/dev/softDev/devCalcoutSoft.c b/src/dev/softDev/devCalcoutSoft.c index 70d77a56a..2371dec40 100644 --- a/src/dev/softDev/devCalcoutSoft.c +++ b/src/dev/softDev/devCalcoutSoft.c @@ -43,7 +43,7 @@ struct { }; epicsExportAddress(dset, devCalcoutSoft); -static long write_calcout(calcoutRecord *pcalcout) +static long write_calcout(calcoutRecord *prec) { - return dbPutLink(&pcalcout->out, DBR_DOUBLE, &pcalcout->oval, 1); + return dbPutLink(&prec->out, DBR_DOUBLE, &prec->oval, 1); } diff --git a/src/dev/softDev/devCalcoutSoftCallback.c b/src/dev/softDev/devCalcoutSoftCallback.c index d9a6334d2..b1dead1ef 100644 --- a/src/dev/softDev/devCalcoutSoftCallback.c +++ b/src/dev/softDev/devCalcoutSoftCallback.c @@ -43,22 +43,22 @@ struct { }; epicsExportAddress(dset, devCalcoutSoftCallback); -static long write_calcout(calcoutRecord *pcalcout) +static long write_calcout(calcoutRecord *prec) { - struct link *plink = &pcalcout->out; + struct link *plink = &prec->out; long status; - if (pcalcout->pact) return 0; + if (prec->pact) return 0; if (plink->type != CA_LINK) { - status = dbPutLink(plink, DBR_DOUBLE, &pcalcout->oval, 1); + status = dbPutLink(plink, DBR_DOUBLE, &prec->oval, 1); return status; } - status = dbCaPutLinkCallback(plink, DBR_DOUBLE, &pcalcout->oval, 1, + status = dbCaPutLinkCallback(plink, DBR_DOUBLE, &prec->oval, 1, (dbCaCallback)dbCaCallbackProcess, plink); if (status) { - recGblSetSevr(pcalcout, LINK_ALARM, INVALID_ALARM); + recGblSetSevr(prec, LINK_ALARM, INVALID_ALARM); return status; } - pcalcout->pact = TRUE; + prec->pact = TRUE; return 0; } diff --git a/src/dev/softDev/devHistogramSoft.c b/src/dev/softDev/devHistogramSoft.c index 2039a44dc..c12c1d07a 100644 --- a/src/dev/softDev/devHistogramSoft.c +++ b/src/dev/softDev/devHistogramSoft.c @@ -50,32 +50,32 @@ struct { }; epicsExportAddress(dset,devHistogramSoft); -static long init_record(histogramRecord *phistogram) +static long init_record(histogramRecord *prec) { long status = 0; /* histogram.svl must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/ - switch (phistogram->svl.type) { + switch (prec->svl.type) { case (CONSTANT) : - if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl)) - phistogram->udf = FALSE; + if(recGblInitConstantLink(&prec->svl,DBF_DOUBLE,&prec->sgnl)) + prec->udf = FALSE; break; case (PV_LINK) : case (DB_LINK) : case (CA_LINK) : break; default : - recGblRecordError(S_db_badField,(void *)phistogram, + recGblRecordError(S_db_badField,(void *)prec, "devHistogramSoft (init_record) Illegal SVL field"); return(S_db_badField); } return(status); } -static long read_histogram(histogramRecord *phistogram) +static long read_histogram(histogramRecord *prec) { long status; - status = dbGetLink(&phistogram->svl,DBR_DOUBLE, &phistogram->sgnl,0,0); + status = dbGetLink(&prec->svl,DBR_DOUBLE, &prec->sgnl,0,0); return(0); /*add count*/ } diff --git a/src/dev/softDev/devLoSoft.c b/src/dev/softDev/devLoSoft.c index 1d2eac2d6..9b73538f2 100644 --- a/src/dev/softDev/devLoSoft.c +++ b/src/dev/softDev/devLoSoft.c @@ -46,15 +46,15 @@ struct { }; epicsExportAddress(dset,devLoSoft); -static long init_record(longoutRecord *plongout) +static long init_record(longoutRecord *prec) { return(0); } /* end init_record() */ -static long write_longout(longoutRecord *plongout) +static long write_longout(longoutRecord *prec) { long status; - status = dbPutLink(&plongout->out,DBR_LONG, &plongout->val,1); + status = dbPutLink(&prec->out,DBR_LONG, &prec->val,1); return(0); } diff --git a/src/dev/softDev/devLoSoftCallback.c b/src/dev/softDev/devLoSoftCallback.c index 4d37bc595..6fd4a000c 100644 --- a/src/dev/softDev/devLoSoftCallback.c +++ b/src/dev/softDev/devLoSoftCallback.c @@ -46,22 +46,22 @@ struct { }; epicsExportAddress(dset,devLoSoftCallback); -static long write_longout(longoutRecord *plongout) +static long write_longout(longoutRecord *prec) { - struct link *plink = &plongout->out; + struct link *plink = &prec->out; long status; - if(plongout->pact) return(0); + if(prec->pact) return(0); if(plink->type!=CA_LINK) { - status = dbPutLink(plink,DBR_LONG,&plongout->val,1); + status = dbPutLink(plink,DBR_LONG,&prec->val,1); return(status); } - status = dbCaPutLinkCallback(plink,DBR_LONG,&plongout->val,1, + status = dbCaPutLinkCallback(plink,DBR_LONG,&prec->val,1, (dbCaCallback)dbCaCallbackProcess,plink); if(status) { - recGblSetSevr(plongout,LINK_ALARM,INVALID_ALARM); + recGblSetSevr(prec,LINK_ALARM,INVALID_ALARM); return(status); } - plongout->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/dev/softDev/devMbboDirectSoft.c b/src/dev/softDev/devMbboDirectSoft.c index ac0073941..1b61d6a3a 100644 --- a/src/dev/softDev/devMbboDirectSoft.c +++ b/src/dev/softDev/devMbboDirectSoft.c @@ -47,7 +47,7 @@ struct { }; epicsExportAddress(dset,devMbboDirectSoft); -static long init_record(mbboDirectRecord *pmbbo) +static long init_record(mbboDirectRecord *prec) { long status = 0; @@ -57,10 +57,10 @@ static long init_record(mbboDirectRecord *pmbbo) } /* end init_record() */ -static long write_mbbo(mbboDirectRecord *pmbbo) +static long write_mbbo(mbboDirectRecord *prec) { long status; - status = dbPutLink(&pmbbo->out,DBR_USHORT,&pmbbo->val,1); + status = dbPutLink(&prec->out,DBR_USHORT,&prec->val,1); return(0); } diff --git a/src/dev/softDev/devMbboDirectSoftCallback.c b/src/dev/softDev/devMbboDirectSoftCallback.c index 3efee488a..1105dae7a 100644 --- a/src/dev/softDev/devMbboDirectSoftCallback.c +++ b/src/dev/softDev/devMbboDirectSoftCallback.c @@ -45,22 +45,22 @@ struct { }; epicsExportAddress(dset,devMbboDirectSoftCallback); -static long write_mbbo(mbboDirectRecord *pmbbo) +static long write_mbbo(mbboDirectRecord *prec) { - struct link *plink = &pmbbo->out; + struct link *plink = &prec->out; long status; - if(pmbbo->pact) return(0); + if(prec->pact) return(0); if(plink->type!=CA_LINK) { - status = dbPutLink(plink,DBR_USHORT,&pmbbo->val,1); + status = dbPutLink(plink,DBR_USHORT,&prec->val,1); return(status); } - status = dbCaPutLinkCallback(plink,DBR_USHORT,&pmbbo->val,1, + status = dbCaPutLinkCallback(plink,DBR_USHORT,&prec->val,1, (dbCaCallback)dbCaCallbackProcess,plink); if(status) { - recGblSetSevr(pmbbo,LINK_ALARM,INVALID_ALARM); + recGblSetSevr(prec,LINK_ALARM,INVALID_ALARM); return(status); } - pmbbo->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/dev/softDev/devMbboDirectSoftRaw.c b/src/dev/softDev/devMbboDirectSoftRaw.c index bfee0f9b9..6c1d6106d 100644 --- a/src/dev/softDev/devMbboDirectSoftRaw.c +++ b/src/dev/softDev/devMbboDirectSoftRaw.c @@ -48,24 +48,24 @@ struct { }; epicsExportAddress(dset,devMbboDirectSoftRaw); -static long init_record(mbboDirectRecord *pmbbo) +static long init_record(mbboDirectRecord *prec) { long status = 0; - if (pmbbo->out.type != PV_LINK) + if (prec->out.type != PV_LINK) status = 2; /*to preserve old functionality*/ - if(pmbbo->nobt == 0) pmbbo->mask = 0xffffffff; - pmbbo->mask <<= pmbbo->shft; + if(prec->nobt == 0) prec->mask = 0xffffffff; + prec->mask <<= prec->shft; return status; } /* end init_record() */ -static long write_mbbo(mbboDirectRecord *pmbbo) +static long write_mbbo(mbboDirectRecord *prec) { long status; unsigned long data; - data = pmbbo->rval & pmbbo->mask; - status = dbPutLink(&pmbbo->out,DBR_LONG, &data,1); + data = prec->rval & prec->mask; + status = dbPutLink(&prec->out,DBR_LONG, &data,1); return(0); } diff --git a/src/dev/softDev/devMbboSoft.c b/src/dev/softDev/devMbboSoft.c index c38212838..685752878 100644 --- a/src/dev/softDev/devMbboSoft.c +++ b/src/dev/softDev/devMbboSoft.c @@ -47,7 +47,7 @@ struct { }; epicsExportAddress(dset,devMbboSoft); -static long init_record(mbboRecord *pmbbo) +static long init_record(mbboRecord *prec) { long status=0; @@ -58,10 +58,10 @@ static long init_record(mbboRecord *pmbbo) } /* end init_record() */ -static long write_mbbo(mbboRecord *pmbbo) +static long write_mbbo(mbboRecord *prec) { long status; - status = dbPutLink(&pmbbo->out,DBR_USHORT, &pmbbo->val,1); + status = dbPutLink(&prec->out,DBR_USHORT, &prec->val,1); return(0); } diff --git a/src/dev/softDev/devMbboSoftCallback.c b/src/dev/softDev/devMbboSoftCallback.c index 737b25f61..04d15d11f 100644 --- a/src/dev/softDev/devMbboSoftCallback.c +++ b/src/dev/softDev/devMbboSoftCallback.c @@ -45,22 +45,22 @@ struct { }; epicsExportAddress(dset,devMbboSoftCallback); -static long write_mbbo(mbboRecord *pmbbo) +static long write_mbbo(mbboRecord *prec) { - struct link *plink = &pmbbo->out; + struct link *plink = &prec->out; long status; - if(pmbbo->pact) return(0); + if(prec->pact) return(0); if(plink->type!=CA_LINK) { - status = dbPutLink(plink,DBR_USHORT,&pmbbo->val,1); + status = dbPutLink(plink,DBR_USHORT,&prec->val,1); return(status); } - status = dbCaPutLinkCallback(plink,DBR_USHORT,&pmbbo->val,1, + status = dbCaPutLinkCallback(plink,DBR_USHORT,&prec->val,1, (dbCaCallback)dbCaCallbackProcess,plink); if(status) { - recGblSetSevr(pmbbo,LINK_ALARM,INVALID_ALARM); + recGblSetSevr(prec,LINK_ALARM,INVALID_ALARM); return(status); } - pmbbo->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/dev/softDev/devMbboSoftRaw.c b/src/dev/softDev/devMbboSoftRaw.c index 31bd786eb..1842787cd 100644 --- a/src/dev/softDev/devMbboSoftRaw.c +++ b/src/dev/softDev/devMbboSoftRaw.c @@ -46,26 +46,26 @@ struct { }; epicsExportAddress(dset,devMbboSoftRaw); -static long init_record(mbboRecord *pmbbo) +static long init_record(mbboRecord *prec) { long status; /*to preserve old functionality*/ - if(pmbbo->nobt == 0) pmbbo->mask = 0xffffffff; - pmbbo->mask <<= pmbbo->shft; + if(prec->nobt == 0) prec->mask = 0xffffffff; + prec->mask <<= prec->shft; /*dont convert*/ status = 2; return status; } /* end init_record() */ -static long write_mbbo(mbboRecord *pmbbo) +static long write_mbbo(mbboRecord *prec) { long status; unsigned long data; - data = pmbbo->rval & pmbbo->mask; - status = dbPutLink(&pmbbo->out,DBR_LONG, &data,1); + data = prec->rval & prec->mask; + status = dbPutLink(&prec->out,DBR_LONG, &data,1); return(0); } diff --git a/src/dev/softDev/devSoSoft.c b/src/dev/softDev/devSoSoft.c index 9904d23a4..6b3e61db8 100644 --- a/src/dev/softDev/devSoSoft.c +++ b/src/dev/softDev/devSoSoft.c @@ -45,10 +45,10 @@ struct { }; epicsExportAddress(dset, devSoSoft); -static long write_stringout(stringoutRecord *pstringout) +static long write_stringout(stringoutRecord *prec) { long status; - status = dbPutLink(&pstringout->out, DBR_STRING, pstringout->val, 1); + status = dbPutLink(&prec->out, DBR_STRING, prec->val, 1); return status; } diff --git a/src/dev/softDev/devSoSoftCallback.c b/src/dev/softDev/devSoSoftCallback.c index 64a3b8bab..6257a34dc 100644 --- a/src/dev/softDev/devSoSoftCallback.c +++ b/src/dev/softDev/devSoSoftCallback.c @@ -45,24 +45,24 @@ struct { }; epicsExportAddress(dset, devSoSoftCallback); -static long write_stringout(stringoutRecord *pstringout) +static long write_stringout(stringoutRecord *prec) { - struct link *plink = &pstringout->out; + struct link *plink = &prec->out; long status; - if (pstringout->pact) return 0; + if (prec->pact) return 0; if (plink->type != CA_LINK) { - return dbPutLink(plink, DBR_STRING, &pstringout->val, 1); + return dbPutLink(plink, DBR_STRING, &prec->val, 1); } - status = dbCaPutLinkCallback(plink, DBR_STRING, &pstringout->val, 1, + status = dbCaPutLinkCallback(plink, DBR_STRING, &prec->val, 1, (dbCaCallback)dbCaCallbackProcess, plink); if (status) { - recGblSetSevr(pstringout, LINK_ALARM, INVALID_ALARM); + recGblSetSevr(prec, LINK_ALARM, INVALID_ALARM); return status; } - pstringout->pact = TRUE; + prec->pact = TRUE; return 0; } diff --git a/src/dev/testDev/devHistogramTestAsyn.c b/src/dev/testDev/devHistogramTestAsyn.c index 0e7f4f28b..e7dd84cad 100644 --- a/src/dev/testDev/devHistogramTestAsyn.c +++ b/src/dev/testDev/devHistogramTestAsyn.c @@ -53,54 +53,54 @@ struct { }; epicsExportAddress(dset,devHistogramTestAsyn); -static long init_record(phistogram) - struct histogramRecord *phistogram; +static long init_record(prec) + struct histogramRecord *prec; { CALLBACK *pcallback; /* histogram.svl must be a CONSTANT*/ - switch (phistogram->svl.type) { + switch (prec->svl.type) { case (CONSTANT) : pcallback = (CALLBACK *)(calloc(1,sizeof(CALLBACK))); - phistogram->dpvt = (void *)pcallback; - if(recGblInitConstantLink(&phistogram->svl,DBF_DOUBLE,&phistogram->sgnl)) - phistogram->udf = FALSE; + prec->dpvt = (void *)pcallback; + if(recGblInitConstantLink(&prec->svl,DBF_DOUBLE,&prec->sgnl)) + prec->udf = FALSE; break; default : - recGblRecordError(S_db_badField,(void *)phistogram, + recGblRecordError(S_db_badField,(void *)prec, "devHistogramTestAsyn (init_record) Illegal SVL field"); - phistogram->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } return(0); } -static long read_histogram(phistogram) - struct histogramRecord *phistogram; +static long read_histogram(prec) + struct histogramRecord *prec; { - CALLBACK *pcallback=(CALLBACK *)(phistogram->dpvt); + CALLBACK *pcallback=(CALLBACK *)(prec->dpvt); /* histogram.svl must be a CONSTANT*/ - switch (phistogram->svl.type) { + switch (prec->svl.type) { case (CONSTANT) : - if(phistogram->pact) { + if(prec->pact) { printf("Completed asynchronous processing: %s\n", - phistogram->name); + prec->name); return(0); /*add count*/ } else { - if(phistogram->disv<=0) return(2); + if(prec->disv<=0) return(2); printf("Starting asynchronous processing: %s\n", - phistogram->name); - phistogram->pact=TRUE; + prec->name); + prec->pact=TRUE; callbackRequestProcessCallbackDelayed( - pcallback,phistogram->prio,phistogram, - (double)phistogram->disv); + pcallback,prec->prio,prec, + (double)prec->disv); return(0); } default : - if(recGblSetSevr(phistogram,SOFT_ALARM,INVALID_ALARM)){ - if(phistogram->stat!=SOFT_ALARM) { - recGblRecordError(S_db_badField,(void *)phistogram, + if(recGblSetSevr(prec,SOFT_ALARM,INVALID_ALARM)){ + if(prec->stat!=SOFT_ALARM) { + recGblRecordError(S_db_badField,(void *)prec, "devHistogramTestAsyn (read_histogram) Illegal SVL field"); } }