Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmeding committed Nov 8, 2023
1 parent d92db4e commit f03d0ad
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions cbits/flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ __attribute__((constructor)) void process_options(int argc, char *argv[])
bool in_acc = false;
for (int i = 1; i < argc; ++i) {
if (NULL == argv[i]) { /* see above */
// fprintf(stderr, "process_options: NULL argument, bailing at i=%d\n", i);
argc = i;
break;
}
Expand Down Expand Up @@ -309,16 +308,6 @@ __attribute__((constructor)) void process_options(int argc, char *argv[])
}
}

// fprintf(stderr, "process_options: parsed %d: (num_cl_options=%d)\n", argc - 1, num_cl_options);
// for (int i = 1; i < argc; i++) {
// switch (cl_option_type[i]) {
// case PROC_OPT_OTHER: fprintf(stderr, "- [%d] other: <%s>\n", i, argv[i]); break;
// case PROC_OPT_MARKER: fprintf(stderr, "- [%d] marker: <%s>\n", i, argv[i]); break;
// case PROC_OPT_OPT: fprintf(stderr, "- [%d] option: <%s>\n", i, argv[i]); break;
// default: abort();
// }
// }

/* Gather options from the ACCELERATE_FLAGS environment variable. Note that we
* must not modify this variable, otherwise subsequent invocations of getenv()
* will get the modified version.
Expand Down Expand Up @@ -373,12 +362,9 @@ __attribute__((constructor)) void process_options(int argc, char *argv[])
}
}

// fprintf(stderr, "process_options: passing on from CL:\n");

/* command line flags */
for (int i = 1; i < argc; ++i) {
if (cl_option_type[i] == PROC_OPT_OPT) {
// fprintf(stderr, "- <%s>\n", argv[i]);
*r++ = argv[i];
}
}
Expand Down Expand Up @@ -413,11 +399,6 @@ __attribute__((constructor)) void process_options(int argc, char *argv[])
}
}

// fprintf(stderr, "process_options: after masking:\n");
// for (int i = 1; i < argc; i++) {
// fprintf(stderr, "- <%s>\n", argv[i]);
// }

/* cleanup */
if (cl_option_type) free(cl_option_type);
if (argv2) free(argv2);
Expand Down

0 comments on commit f03d0ad

Please sign in to comment.