Made reporting of hardware more consistant

This commit is contained in:
Marty Kraimer
1992-06-03 07:58:31 +00:00
parent f7149d3a71
commit ac1454ffe4
46 changed files with 181 additions and 371 deletions

View File

@@ -74,7 +74,6 @@ struct {
static long init_record(phistogram)
struct histogramRecord *phistogram;
{
char message[100];
/* histogram.svl must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (phistogram->svl.type) {
@@ -88,9 +87,8 @@ static long init_record(phistogram)
case (CA_LINK) :
break;
default :
strcpy(message,phistogram->name);
strcat(message,": devHistogramSoft (init_record) Illegal SVL field");
errMessage(S_db_badField,message);
recGblRecordError(S_db_badField,phistogram,
"devHistogramSoft (init_record) Illegal SVL field");
return(S_db_badField);
}
return(0);
@@ -99,7 +97,6 @@ static long init_record(phistogram)
static long read_histogram(phistogram)
struct histogramRecord *phistogram;
{
char message[100];
long status,options,nRequest;
/* histogram.svl must be a CONSTANT or a DB_LINK or a CA_LINK*/
@@ -125,9 +122,8 @@ static long read_histogram(phistogram)
phistogram->nsev = VALID_ALARM;
phistogram->nsta = SOFT_ALARM;
if(phistogram->stat!=SOFT_ALARM) {
strcpy(message,phistogram->name);
strcat(message,": devHistogramSoft (read_histogram) Illegal SVL field");
errMessage(S_db_badField,message);
recGblRecordError(S_db_badField,phistogram,
"devHistogramSoft (read_histogram) Illegal SVL field");
}
}
}