tools: fix an invalid parameter of send_msg in query_state

The issue is "acrnctl list" command always returns error with "no vmname
provided" information.

The rootcause is that vmname is an invalid parameter, which does not contain
any vm information.

Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Yuhong Tao <yuhong.tao@intel.com>
Reviewed-by: Like Yan <like.yan@intel.com>
This commit is contained in:
Yuan Liu 2018-07-31 08:48:44 +00:00 committed by lijinxia
parent 7345677bbb
commit 331300d8b9
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static int query_state(const char *name)
req.msgid = DM_QUERY;
req.timestamp = time(NULL);
ret = send_msg(vmname, &req, &ack);
ret = send_msg(name, &req, &ack);
if (ret)
return ret;