1
0
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:
Alasdair Kergon 2002-03-14 13:39:33 +00:00
parent d8e7d77316
commit c22c93f0b6
2 changed files with 11 additions and 1 deletions

View File

@ -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);
vfprintf(stderr, f, ap);
if (level == _LOG_WARN)
vprintf(f, ap);
else
vfprintf(stderr, f, ap);
va_end(ap);
fprintf(stderr, "\n");

View File

@ -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");