1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

Only print warning message once when compiled without libdevmapper.

This commit is contained in:
Alasdair Kergon 2004-03-19 16:26:46 +00:00
parent 68df28296d
commit f2046e0aeb

View File

@ -25,9 +25,15 @@
#ifndef DEVMAPPER_SUPPORT #ifndef DEVMAPPER_SUPPORT
void set_activation(int act) void set_activation(int act)
{ {
if (act) static int warned = 0;
log_error("Compiled without libdevmapper support. "
"Can't enable activation."); if (warned || !act)
return;
log_error("Compiled without libdevmapper support. "
"Can't enable activation.");
warned = 1;
} }
int activation(void) int activation(void)
{ {