@@ -73,14 +73,13 @@ testEventResultCallback(const void *opaque)
{
const struct testEventResultData *data = opaque;
- if (data->failed && data->msg) {
+ if (data->failed && data->msg)
fprintf(stderr, "%s", data->msg);
- }
return data->failed;
}
static void
-ATTRIBUTE_FMT_PRINTF(3,4)
+ATTRIBUTE_FMT_PRINTF(3, 4)
testEventReport(const char *name, bool failed, const char *msg, ...)
{
va_list vargs;
@@ -88,9 +87,8 @@ testEventReport(const char *name, bool failed, const char
*msg, ...)
char *str = NULL;
struct testEventResultData data;
- if (msg && virVasprintfQuiet(&str, msg, vargs) != 0) {
+ if (msg && virVasprintfQuiet(&str, msg, vargs) != 0)
failed = true;
- }
data.failed = failed;