mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-01 09:47:48 +03:00
tweak .so loading messages; extra device_exists() sanity check
This commit is contained in:
parent
e24e713001
commit
dfb5da937e
@ -318,7 +318,7 @@ static int device_exists(char *device)
|
|||||||
struct stat st_buf;
|
struct stat st_buf;
|
||||||
char path2[PATH_MAX];
|
char path2[PATH_MAX];
|
||||||
|
|
||||||
if (!device)
|
if (!device || !*device)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (device[0] == '/') /* absolute path */
|
if (device[0] == '/') /* absolute path */
|
||||||
@ -718,8 +718,11 @@ static struct dso_data *load_dso(struct message_data *data)
|
|||||||
void *dl;
|
void *dl;
|
||||||
struct dso_data *ret = NULL;
|
struct dso_data *ret = NULL;
|
||||||
|
|
||||||
|
log_very_verbose("Opening shared library %s", data->dso_name);
|
||||||
|
|
||||||
if (!(dl = dlopen(data->dso_name, RTLD_NOW))){
|
if (!(dl = dlopen(data->dso_name, RTLD_NOW))){
|
||||||
log_error("%s\n", dlerror());
|
log_error("dmeventd %s dlopen failed: %s", data->dso_name,
|
||||||
|
dlerror());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user