Skip to content

Commit

Permalink
Merge pull request #50 from mdavidsaver/quiet-fdbrestore
Browse files Browse the repository at this point in the history
do_manual_restore: fix erroneous error message
  • Loading branch information
keenanlang committed Jun 5, 2023
2 parents 2d8b9d1 + 3a66364 commit 10a8f11
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions asApp/src/save_restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -3378,13 +3378,17 @@ STATIC int do_manual_restore(char *filename, int file_type, char *macrostring)
for (pchannel = plist->pchan_list; pchannel !=0; pchannel = pchannel->pnext) {
if (pchannel->curr_elements <= 1) {
status = ca_put(DBR_STRING, pchannel->chid, pchannel->value);
if (status) printf("do_manual_restore:ca_put() to '%s'failed.\n", pchannel->name);
if (status!=ECA_NORMAL)
printf("do_manual_restore:ca_put() to '%s' failed with %lu.\n",
pchannel->name, status);
} else {
status = SR_put_array_values(pchannel->name, pchannel->pArray, pchannel->curr_elements);
if (status) printf("do_manual_restore:SR_put_array_values() to '%s'failed.\n", pchannel->name);
if (status!=ECA_NORMAL)
printf("do_manual_restore:SR_put_array_values() to '%s' failed with %lu.\n",
pchannel->name, status);
}
if (status!=ECA_NORMAL) num_errs++;
}
if (status) num_errs++;
if (ca_pend_io(1.0) != ECA_NORMAL) {
printf("save_restore:do_manual_restore: not all channels restored\n");
}
Expand Down

0 comments on commit 10a8f11

Please sign in to comment.