Merge lp:~gerboland/platform-api/add-dlerror into lp:platform-api

Proposed by Gerry Boland on 2014-11-14
Status: Needs review
Proposed branch: lp:~gerboland/platform-api/add-dlerror
Merge into: lp:platform-api
Diff against target: 15 lines (+3/-1)
1 file modified
src/ubuntu/application/base_module.h (+3/-1)
To merge this branch: bzr merge lp:~gerboland/platform-api/add-dlerror
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve on 2014-11-14
Ubuntu Phablet Team 2014-11-14 Pending
Review via email: mp+241792@code.launchpad.net

Commit Message

Use dlerror to print why dlopen fails

Description of the Change

Use dlerror to print why dlopen fails

Unmerged revisions

284. By Gerry Boland on 2014-11-14

Use dlerror to print why dlopen fails

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/ubuntu/application/base_module.h'
2--- src/ubuntu/application/base_module.h 2014-09-30 01:35:35 +0000
3+++ src/ubuntu/application/base_module.h 2014-11-14 12:38:24 +0000
4@@ -87,8 +87,10 @@
5 static void* dlopen_fn(const char* path, int flags)
6 {
7 void *handle = dlopen(path, flags);
8- if (handle == NULL)
9+ if (handle == NULL) {
10+ printf("%s\n", dlerror());
11 exit_module("Unable to load selected module.");
12+ }
13
14 return handle;
15 }

Subscribers

People subscribed via source and target branches