Exit with error when no RAM contents were replaced.

This commit is contained in:
Tom Verbeure 2022-12-27 10:43:31 -08:00
parent a545498d6f
commit a4d32c985b
1 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,10 @@ int main(int argc, char **argv)
if (verbose)
fprintf(stderr, "Found and replaced %d instances of the memory.\n", max_replace_cnt);
if (max_replace_cnt == 0) {
fprintf(stderr, "No memory instances were replaced.\n");
exit(2);
}
// -------------------------------------------------------
// Write ascfile to stdout