mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
Suppress missing file warnings if -m is specified
This commit is contained in:
parent
a5a72f4a31
commit
adbc74f862
10 changed files with 57 additions and 16 deletions
|
|
@ -98,6 +98,23 @@ void msg_warning(const char* format, ...)
|
|||
pthread_mutex_unlock(&msg_lock);
|
||||
}
|
||||
|
||||
void msg_expected(const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
pthread_mutex_lock(&msg_lock);
|
||||
|
||||
if (stdlog) {
|
||||
va_start(ap, format);
|
||||
fprintf(stdlog, "msg:warning: ");
|
||||
vfprintf(stdlog, format, ap);
|
||||
fflush(stdlog);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&msg_lock);
|
||||
}
|
||||
|
||||
void msg_tag(const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue