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:
Andrew Johnson
2014-07-29 12:46:38 -05:00
parent 6d11cba513
commit 41502f9525

View File

@@ -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)