From 015d6ed025e25ff19236a2a8533324006339baf5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 19 Feb 2014 14:03:30 +0000 Subject: [PATCH] xl: Comment error handling in dolog Coverity-ID: 1087116 Signed-off-by: Ian Jackson Acked-by: Ian Campbell CC: coverity@xenproject.org --- tools/libxl/xl_cmdimpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 6a1e2acd1b..5a92c3befd 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -352,6 +352,8 @@ static void dolog(const char *file, int line, const char *func, char *fmt, ...) rc = vasprintf(&s, fmt, ap); va_end(ap); if (rc >= 0) + /* we ignore write errors since we have no way to report them; + * the alternative would be to abort the whole program */ libxl_write_exactly(NULL, logfile, s, rc, NULL, NULL); free(s); } -- 2.39.5