]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xl: Comment error handling in dolog
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Feb 2014 14:03:30 +0000 (14:03 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 12 Mar 2014 14:11:41 +0000 (14:11 +0000)
Coverity-ID: 1087116
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
CC: coverity@xenproject.org
tools/libxl/xl_cmdimpl.c

index 6a1e2acd1bc86a93611af2560607f8e34cc1f18e..5a92c3befd52e98d907c84002493550995e1ac6c 100644 (file)
@@ -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);
 }