mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Suppress verbose/debug messages from libdevmapper.
This commit is contained in:
parent
d8e7d77316
commit
c22c93f0b6
@ -35,8 +35,16 @@ void _default_log(int level, const char *file, int line,
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
if (level > _LOG_WARN)
|
||||
return;
|
||||
|
||||
va_start(ap, f);
|
||||
|
||||
if (level == _LOG_WARN)
|
||||
vprintf(f, ap);
|
||||
else
|
||||
vfprintf(stderr, f, ap);
|
||||
|
||||
va_end(ap);
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
|
@ -254,6 +254,8 @@ static int _info(int argc, char **argv)
|
||||
goto out;
|
||||
}
|
||||
|
||||
printf("Name: %s\n", argv[1]);
|
||||
|
||||
printf("State: %s\n",
|
||||
info.suspended ? "SUSPENDED" : "ACTIVE");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user