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:
Ian Jackson authored and Ian Campbell committed 2014-03-12 14:11:41 +00:00
1 parent c566ab68af
commit 015d6ed025
1 file changed
+2
+2
View 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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.