mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xl: Comment error handling in dolog
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
This commit is contained in:
1 parent
c566ab68af
commit
015d6ed025
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||