From 480162f7720e063107c7eb737c2a29784278e9e4 Mon Sep 17 00:00:00 2001 From: Eric Chanudet Date: Fri, 19 Jun 2020 13:10:19 -0400 Subject: [PATCH 1/2] qemu-dm: qmp-argo error handling If argo_socket fails to return a new file-descriptor, print errno to get some information on what happened. Signed-off-by: Eric Chanudet --- recipes-extended/qemu-dm/qemu-dm/qmp-argo-char-driver.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/qemu-dm/qemu-dm/qmp-argo-char-driver.patch b/recipes-extended/qemu-dm/qemu-dm/qmp-argo-char-driver.patch index c6cb499716..cf8a90abe0 100644 --- a/recipes-extended/qemu-dm/qemu-dm/qmp-argo-char-driver.patch +++ b/recipes-extended/qemu-dm/qemu-dm/qmp-argo-char-driver.patch @@ -293,7 +293,7 @@ + fd = argo_socket(s->stream ? SOCK_STREAM : SOCK_DGRAM); + if (fd < 0) { + error_setg(errp, "%s cannot create argo socket - err: %d", -+ ARGO_CHARDRV_NAME, fd); ++ ARGO_CHARDRV_NAME, errno); + return; + } + From 13394f75ea6070f5fecb01dcd63f6e0ba0216d01 Mon Sep 17 00:00:00 2001 From: Eric Chanudet Date: Thu, 27 Aug 2020 14:48:35 -0400 Subject: [PATCH 2/2] qemu-dm: amend print statement Missing CR. Signed-off-by: Eric Chanudet --- .../qemu-dm/qemu-dm/nic-link-state-propagation.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/qemu-dm/qemu-dm/nic-link-state-propagation.patch b/recipes-extended/qemu-dm/qemu-dm/nic-link-state-propagation.patch index 7f412f3a1e..884a01d333 100644 --- a/recipes-extended/qemu-dm/qemu-dm/nic-link-state-propagation.patch +++ b/recipes-extended/qemu-dm/qemu-dm/nic-link-state-propagation.patch @@ -179,7 +179,7 @@ PATCHES + } + xenstore_update_nic(nic); + -+ fprintf(stderr, "Registered xenstore watch for NIC %s", name); ++ fprintf(stderr, "Registered xenstore watch for NIC %s\n", name); + + return 0; +}