mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 11:20:32 +00:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user