total_errors = ctx->errors_found + ctx->runtime_errors;
if (total_errors == 0 && ctx->warnings_found == 0) {
- log_info(ctx, _("No errors found."));
+ log_info(ctx, _("No problems found."));
return;
}
- if (total_errors == 0) {
- fprintf(stderr, _("%s: warnings found: %llu\n"), ctx->mntpoint,
- ctx->warnings_found);
- log_warn(ctx, _("warnings found: %llu"), ctx->warnings_found);
- } else if (ctx->warnings_found == 0) {
+ if (total_errors > 0) {
fprintf(stderr, _("%s: errors found: %llu\n"), ctx->mntpoint,
total_errors);
log_err(ctx, _("errors found: %llu"), total_errors);
- } else {
- fprintf(stderr, _("%s: errors found: %llu; warnings found: %llu\n"),
- ctx->mntpoint, total_errors,
+ }
+
+ if (ctx->warnings_found > 0) {
+ fprintf(stderr, _("%s: warnings found: %llu\n"), ctx->mntpoint,
ctx->warnings_found);
- log_err(ctx, _("errors found: %llu; warnings found: %llu"),
- total_errors, ctx->warnings_found);
+ log_warn(ctx, _("warnings found: %llu"), ctx->warnings_found);
}
/*