mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
- make noop use multilog
- add event_nr to thread_status struct and set appropriately so that the thread actually waits for an event - essentially make error_detected return true. Let the DSOs determine how to interpret the status info
This commit is contained in:
parent
cd4355d8f4
commit
1862e88ffa
@ -13,18 +13,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libdm-event.h"
|
#include "libdm-event.h"
|
||||||
|
#include "libmultilog.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
void process_event(char *device, enum event_type event)
|
void process_event(char *device, enum event_type event)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[%s] %s(%d) - Device: %s, Event %d\n",
|
log_err("[%s] %s(%d) - Device: %s, Event %d\n",
|
||||||
__FILE__, __func__, __LINE__, device, event);
|
__FILE__, __func__, __LINE__, device, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
int register_device(char *device)
|
int register_device(char *device)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[%s] %s(%d) - Device: %s\n",
|
log_err("[%s] %s(%d) - Device: %s\n",
|
||||||
__FILE__, __func__, __LINE__, device);
|
__FILE__, __func__, __LINE__, device);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
@ -32,7 +32,7 @@ int register_device(char *device)
|
|||||||
|
|
||||||
int unregister_device(char *device)
|
int unregister_device(char *device)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[%s] %s(%d) - Device: %s\n",
|
log_err("[%s] %s(%d) - Device: %s\n",
|
||||||
__FILE__, __func__, __LINE__, device);
|
__FILE__, __func__, __LINE__, device);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user