From 331300d8b90274cf4176e9a1ddf8242edb798fcf Mon Sep 17 00:00:00 2001 From: Yuan Liu Date: Tue, 31 Jul 2018 08:48:44 +0000 Subject: [PATCH] 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 Reviewed-by: Yuhong Tao Reviewed-by: Like Yan --- tools/acrn-manager/acrn_vm_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/acrn-manager/acrn_vm_ops.c b/tools/acrn-manager/acrn_vm_ops.c index 7607a9515..fbc155283 100644 --- a/tools/acrn-manager/acrn_vm_ops.c +++ b/tools/acrn-manager/acrn_vm_ops.c @@ -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;