]> sourceware.org Git - dm.git/commitdiff
tweak .so loading messages; extra device_exists() sanity check
authorAlasdair Kergon <agk@redhat.com>
Fri, 28 Apr 2006 14:08:04 +0000 (14:08 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 28 Apr 2006 14:08:04 +0000 (14:08 +0000)
dmeventd/dmeventd.c

index 4639bff085223a693a5c9ae58ac4e44e7bdd7b11..406d369a96dfb6b5a700c4001b645df64d7b0606 100644 (file)
@@ -318,7 +318,7 @@ static int device_exists(char *device)
        struct stat st_buf;
        char path2[PATH_MAX];
 
-       if (!device)
+       if (!device || !*device)
                return 0;
 
        if (device[0] == '/') /* absolute path */
@@ -718,8 +718,11 @@ static struct dso_data *load_dso(struct message_data *data)
        void *dl;
        struct dso_data *ret = NULL;
 
+       log_very_verbose("Opening shared library %s", data->dso_name);
+
        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;
        }
 
This page took 0.02627 seconds and 5 git commands to generate.