mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
tools: acrnd: Refine log msg to avoid confusing.
When guest enter S5, its monitor socket will be closed. If we try to use it to query the vm state, an error msg will be print out. Acctually, we should not take it as an error. So, this patch refine the log msg to show more details when guest trying to enter S3/S5. Tracked-On: #1506 Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
@@ -281,14 +281,13 @@ static int send_msg(const char *vmname, struct mngr_msg *req,
|
||||
|
||||
fd = mngr_open_un(vmname, MNGR_CLIENT);
|
||||
if (fd < 0) {
|
||||
printf("%s: Unable to open %s. line %d\n", __FUNCTION__,
|
||||
vmname, __LINE__);
|
||||
printf("Unable to open vm %s socket. It may have been shutdown\n", vmname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = mngr_send_msg(fd, req, ack, 1);
|
||||
if (ret < 0) {
|
||||
printf("%s: Unable to send msg\n", __FUNCTION__);
|
||||
printf("Unable to send msg to vm %s socket. It may have been shutdown\n", vmname);
|
||||
mngr_close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user