improve error message
This commit is contained in:
@@ -2197,12 +2197,12 @@ long dbInitRecordLinks(dbRecordType *rtyp, struct dbCommon *prec)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
} else if(dbCanSetLink(plink, &link_info, devsup)!=0) {
|
} else if(dbCanSetLink(plink, &link_info, devsup)!=0) {
|
||||||
errlogPrintf("Error: %s.%s: can't initialize link type %d with \"%s\" (type %d)\n",
|
errlogPrintf("Error: %s.%s: can't initialize link type %s with \"%s\" (type %s)\n",
|
||||||
prec->name, pflddes->name, plink->type, plink->text, link_info.ltype);
|
prec->name, pflddes->name, pamaplinkType[plink->type], plink->text, pamaplinkType[link_info.ltype]);
|
||||||
|
|
||||||
} else if(dbSetLink(plink, &link_info, devsup)) {
|
} else if(dbSetLink(plink, &link_info, devsup)) {
|
||||||
errlogPrintf("Error: %s.%s: failed to initialize link type %d with \"%s\" (type %d)\n",
|
errlogPrintf("Error: %s.%s: failed to initialize link type %s with \"%s\" (type %s)\n",
|
||||||
prec->name, pflddes->name, plink->type, plink->text, link_info.ltype);
|
prec->name, pflddes->name, pamaplinkType[plink->type], plink->text, pamaplinkType[link_info.ltype]);
|
||||||
}
|
}
|
||||||
free(plink->text);
|
free(plink->text);
|
||||||
plink->text = NULL;
|
plink->text = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user