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:
parent
7345677bbb
commit
331300d8b9
|
@ -72,7 +72,7 @@ static int query_state(const char *name)
|
||||||
req.msgid = DM_QUERY;
|
req.msgid = DM_QUERY;
|
||||||
req.timestamp = time(NULL);
|
req.timestamp = time(NULL);
|
||||||
|
|
||||||
ret = send_msg(vmname, &req, &ack);
|
ret = send_msg(name, &req, &ack);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue