Commit d4fd9104 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

crtools: Remove duplicate show_single_file boolean

It duplicates the show_dump_file pointer.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent a76922eb
...@@ -639,7 +639,7 @@ out: ...@@ -639,7 +639,7 @@ out:
int cr_show(unsigned long pid, struct cr_options *opts) 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_parse_file(opts);
return cr_show_all(pid, opts); return cr_show_all(pid, opts);
......
...@@ -303,7 +303,6 @@ int main(int argc, char *argv[]) ...@@ -303,7 +303,6 @@ int main(int argc, char *argv[])
opts.final_state = CR_TASK_LEAVE_RUNNING; opts.final_state = CR_TASK_LEAVE_RUNNING;
break; break;
case 'f': case 'f':
opts.show_single_file = true;
opts.show_dump_file = optarg; opts.show_dump_file = optarg;
break; break;
case 'D': case 'D':
...@@ -335,7 +334,7 @@ int main(int argc, char *argv[]) ...@@ -335,7 +334,7 @@ int main(int argc, char *argv[])
} }
if (!has_pid) { if (!has_pid) {
if (action != 's' || !opts.show_single_file) if (action != 's' || !opts.show_dump_file)
goto opt_pid_missing; goto opt_pid_missing;
} }
......
...@@ -37,7 +37,6 @@ enum cr_task_final_state { ...@@ -37,7 +37,6 @@ enum cr_task_final_state {
struct cr_options { struct cr_options {
bool leader_only; bool leader_only;
enum cr_task_final_state final_state; enum cr_task_final_state final_state;
bool show_single_file;
bool show_pages_content; bool show_pages_content;
char *show_dump_file; char *show_dump_file;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment