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.
@@ -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;
