From 41502f9525e76157fc7baf23ce536aa817690bc2 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 29 Jul 2014 12:46:38 -0500 Subject: [PATCH] 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. --- src/ioc/db/dbTest.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/ioc/db/dbTest.c b/src/ioc/db/dbTest.c index 4c7ac5574..46b6b2c9d 100644 --- a/src/ioc/db/dbTest.c +++ b/src/ioc/db/dbTest.c @@ -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)