Use the same TRUE/FALSE test in the dump routines as in the actual rule

evaluation, in case the results are different.
This commit is contained in:
Andrew Johnson
2006-11-16 17:26:38 +00:00
parent ad7f71d41c
commit 27fcfac8b8

View File

@@ -578,7 +578,7 @@ int epicsShareAPI asDumpFP(
if(pasgrule->calc) {
fprintf(fp,"\t\tCALC(\"%s\")",pasgrule->calc);
if(verbose)
fprintf(fp," result=%s",(pasgrule->result ? "TRUE" : "FALSE"));
fprintf(fp," result=%s",(pasgrule->result==1 ? "TRUE" : "FALSE"));
fprintf(fp,"\n");
}
if(print_end_brace) fprintf(fp,"\t}\n");
@@ -753,7 +753,7 @@ int epicsShareAPI asDumpRulesFP(FILE *fp,const char *asgname)
}
if(pasgrule->calc) {
fprintf(fp,"\t\tCALC(\"%s\")",pasgrule->calc);
fprintf(fp," result=%s",(pasgrule->result ? "TRUE" : "FALSE"));
fprintf(fp," result=%s",(pasgrule->result==1 ? "TRUE" : "FALSE"));
fprintf(fp,"\n");
}
if(print_end_brace) fprintf(fp,"\t}\n");