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

@@ -75,9 +75,7 @@ struct {
static long init_record(pbi)
struct biRecord *pbi;
{
char message[100];
/* Added for Channel Access Links */
long status;
long status;
/* bi.inp must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
switch (pbi->inp.type) {
@@ -94,9 +92,8 @@ long status;
case (CA_LINK) :
break;
default :
strcpy(message,pbi->name);
strcat(message,": devBiSoft (init_record) Illegal INP field");
errMessage(S_db_badField,message);
recGblRecordError(S_db_badField,pbi,
"devBiSoft (init_record) Illegal INP field");
return(S_db_badField);
}
return(0);
@@ -105,7 +102,6 @@ long status;
static long read_bi(pbi)
struct biRecord *pbi;
{
char message[100];
long status,options,nRequest;
/* bi.inp must be a CONSTANT or a DB_LINK or a CA_LINK*/
@@ -132,9 +128,8 @@ static long read_bi(pbi)
default :
if(recGblSetSevr(pbi,SOFT_ALARM,VALID_ALARM)){
if(pbi->stat!=SOFT_ALARM) {
strcpy(message,pbi->name);
strcat(message,": devBiSoft (read_bi) Illegal INP field");
errMessage(S_db_badField,message);
recGblRecordError(S_db_badField,pbi,
"devBiSoft (read_bi) Illegal INP field");
}
}
}