mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-29 18:50:41 +03:00
Fix syslog prefix in the first message (dmeventd->lvm).
This commit is contained in:
parent
257bb03948
commit
676b511245
@ -225,8 +225,9 @@ int register_device(const char *device,
|
||||
int minor __attribute((unused)),
|
||||
void **unused __attribute((unused)))
|
||||
{
|
||||
int r = dmeventd_lvm2_init();
|
||||
syslog(LOG_INFO, "Monitoring mirror device %s for events", device);
|
||||
return dmeventd_lvm2_init();
|
||||
return r;
|
||||
}
|
||||
|
||||
int unregister_device(const char *device,
|
||||
|
@ -120,11 +120,12 @@ int register_device(const char *device,
|
||||
void **private)
|
||||
{
|
||||
int *percent_warning = (int*)private;
|
||||
int r = dmeventd_lvm2_init();
|
||||
|
||||
*percent_warning = WARNING_THRESH; /* Print warning if snapshot is full */
|
||||
|
||||
syslog(LOG_INFO, "Monitoring snapshot %s\n", device);
|
||||
return dmeventd_lvm2_init();
|
||||
return r;
|
||||
}
|
||||
|
||||
int unregister_device(const char *device,
|
||||
|
Loading…
x
Reference in New Issue
Block a user