All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/libxl: Fix the errno
@ 2015-03-20  8:17 Wen Congyang
  2015-03-20  8:25 ` Ross Lagerwall
  2015-03-20 11:03 ` Ian Campbell
  0 siblings, 2 replies; 7+ messages in thread
From: Wen Congyang @ 2015-03-20  8:17 UTC (permalink / raw)
  To: Andrew Cooper, Ross Lagerwall; +Cc: Ian Campbell, xen devel

After commit 6d896e13, we should pass -errno on read failure.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
---
 tools/libxl/libxl_aoutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_aoutils.c b/tools/libxl/libxl_aoutils.c
index 0d4c8af..b93f0e4 100644
--- a/tools/libxl/libxl_aoutils.c
+++ b/tools/libxl/libxl_aoutils.c
@@ -262,7 +262,7 @@ static void datacopier_readable(libxl__egc *egc, libxl__ev_fd *ev,
                 assert(ferror(dc->log));
                 assert(errno);
                 LOGE(ERROR, "error logging %s", dc->copywhat);
-                datacopier_callback(egc, dc, 0, errno);
+                datacopier_callback(egc, dc, 0, -errno);
                 return;
             }
         }
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-20 16:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20  8:17 [PATCH] tools/libxl: Fix the errno Wen Congyang
2015-03-20  8:25 ` Ross Lagerwall
2015-03-20  8:39   ` Wen Congyang
2015-03-20 11:03 ` Ian Campbell
2015-03-20 11:15   ` Ian Campbell
2015-03-20 16:02     ` Ross Lagerwall
2015-03-20 16:09       ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.