diff --git a/cr-show.c b/cr-show.c index 07da16227..7648b72a7 100644 --- a/cr-show.c +++ b/cr-show.c @@ -639,7 +639,7 @@ out: int cr_show(unsigned long pid, struct cr_options *opts) { - if (opts->show_single_file) + if (opts->show_dump_file) return cr_parse_file(opts); return cr_show_all(pid, opts); diff --git a/crtools.c b/crtools.c index aed18cffa..99bbaa50b 100644 --- a/crtools.c +++ b/crtools.c @@ -303,7 +303,6 @@ int main(int argc, char *argv[]) opts.final_state = CR_TASK_LEAVE_RUNNING; break; case 'f': - opts.show_single_file = true; opts.show_dump_file = optarg; break; case 'D': @@ -335,7 +334,7 @@ int main(int argc, char *argv[]) } if (!has_pid) { - if (action != 's' || !opts.show_single_file) + if (action != 's' || !opts.show_dump_file) goto opt_pid_missing; } diff --git a/include/crtools.h b/include/crtools.h index 6610d5eb4..d93f1dc00 100644 --- a/include/crtools.h +++ b/include/crtools.h @@ -37,7 +37,6 @@ enum cr_task_final_state { struct cr_options { bool leader_only; enum cr_task_final_state final_state; - bool show_single_file; bool show_pages_content; char *show_dump_file; };