else {
usermsgs_put(&msg_ist);
}
-
- fprintf(stderr, "%s%s%s", head, parsing_str, msg);
- fflush(stderr);
+ if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) {
+ fprintf(stderr, "%s%s%s", head, parsing_str, msg);
+ fflush(stderr);
+ }
free(head);
free(msg);
}
/*
- * Displays the message on stderr with the pid. Overrides the quiet
- * mode during startup.
+ * Displays the message on stderr with the pid.
*/
void ha_alert(const char *fmt, ...)
{
va_list argp;
- if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) {
- warn_exec_path();
- va_start(argp, fmt);
- print_message(1, "ALERT", fmt, argp);
- va_end(argp);
- }
+ warn_exec_path();
+ va_start(argp, fmt);
+ print_message(1, "ALERT", fmt, argp);
+ va_end(argp);
}
/*
warned |= WARN_ANY;
HA_ATOMIC_INC(&tot_warnings);
- if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) {
- warn_exec_path();
- va_start(argp, fmt);
- print_message(1, "WARNING", fmt, argp);
- va_end(argp);
- }
+ warn_exec_path();
+ va_start(argp, fmt);
+ print_message(1, "WARNING", fmt, argp);
+ va_end(argp);
}
/*
{
va_list argp;
- if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) {
- va_start(argp, fmt);
- print_message(1, "NOTICE", fmt, argp);
- va_end(argp);
- }
+ va_start(argp, fmt);
+ print_message(1, "NOTICE", fmt, argp);
+ va_end(argp);
}
/*