Skip to content

Commit

Permalink
Do not complain if optional mce-plugin-libhybris is not installed
Browse files Browse the repository at this point in the history
Still emits diagnostic message if mce was started in verbose mode.
  • Loading branch information
spiiroin committed Aug 12, 2013
1 parent 6923c82 commit c65f24c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mce-hybris.c
Expand Up @@ -318,6 +318,9 @@ static void *mce_hybris_lookup_function(const char *name)
if( !(path = mce_hybris_module_path()) ) {
mce_log(LL_WARN, "could not locate hybris plugin");
}
else if( access(path, F_OK) == -1 && errno == ENOENT ) {
mce_log(LL_NOTICE, "%s: not installed", path);
}
else if( !(base = dlopen(path, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND)) ) {
mce_log(LL_WARN, "%s: failed to load: %s", path, dlerror());
}
Expand Down

0 comments on commit c65f24c

Please sign in to comment.