mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Logged more information when a plugin could not be loaded
Put the explanation from dlerr() into the syslog when a plugin could not be loaded.
This commit is contained in:
parent
2eb5052480
commit
fa0a7a5686
@ -835,10 +835,12 @@ const struct plugin_operations *select_reparse_plugin(ntfs_fuse_context_t *ctx,
|
||||
if (!ops)
|
||||
dlclose(handle);
|
||||
} else {
|
||||
if (!(ctx->errors_logged & ERR_PLUGIN))
|
||||
if (!(ctx->errors_logged & ERR_PLUGIN)) {
|
||||
ntfs_log_perror(
|
||||
"Could not load plugin %s",
|
||||
name);
|
||||
ntfs_log_error("Hint %s\n",dlerror());
|
||||
}
|
||||
ctx->errors_logged |= ERR_PLUGIN;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user