Commit 2ffd191b authored by Radostin Stoyanov's avatar Radostin Stoyanov Committed by Andrei Vagin

cr-service: Don't log return val of parse_options

The function parse_options() should return an integer 0, 1 or 2, where:
0 := Success
1 := Failure
2 := CRIU should display help text

The current behaviour always creates a warning message which shows
the return value of that function. However, when the return value
is different than 0 (Success) CRIU will fail. Since the logging is
not initialised when this message is created, it will be lost, and
therefore it can be removed completely.
Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
parent bffa1d33
......@@ -277,7 +277,6 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
rpc_cfg_file = req->config_file;
i = parse_options(0, NULL, &dummy, &dummy, PARSING_RPC_CONF);
pr_warn("parse_options returns %d\n", i);
if (i) {
xfree(tmp_output);
xfree(tmp_work);
......
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