db: Remove status message from dbpf
The status returned from dbPutField() can now include errors from the record processing such as a link alarm, so it doesn't mean what it used to and printing the error might be wrong. Now we just return the status value.
This commit is contained in:
@@ -366,16 +366,8 @@ long dbpf(const char *pname,const char *pvalue)
|
||||
}
|
||||
|
||||
status = dbPutField(&addr, dbrType, pvalue, (long) n);
|
||||
if (status) {
|
||||
if (status == -1)
|
||||
printf("dbpf: Value conversion from %s to %s failed\n",
|
||||
dbr[dbrType], dbf[addr.field_type]);
|
||||
else
|
||||
errMessage(status,"- dbPutField error\n");
|
||||
return status;
|
||||
}
|
||||
|
||||
return dbgf(pname);
|
||||
dbgf(pname);
|
||||
return status;
|
||||
}
|
||||
|
||||
long dbpr(const char *pname,int interest_level)
|
||||
|
||||
Reference in New Issue
Block a user