Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Updated module loading to print out loading failure reason |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b95899fb134525d25fe8dae3d1914e61 |
User & Date: | rkeene 2013-03-04 23:29:44 |
Context
2013-03-04
| ||
23:32 | Create new branch named "new-driver" check-in: 962bbd984e user: rkeene tags: new-driver | |
23:29 | Updated module loading to print out loading failure reason Leaf check-in: b95899fb13 user: rkeene tags: trunk | |
23:28 | Added new macro for printing errors with formatting check-in: 8efd79fae0 user: rkeene tags: trunk | |
Changes
Changes to module.c.
︙ | ︙ | |||
121 122 123 124 125 126 127 | snprintf(modulefile, sizeof(modulefile)-1, "%s/%s.so",tmpbuf,modulename); if ((mh=dlopen(modulefile, RTLD_GLOBAL|RTLD_NOW))!=NULL) break; } free(mdircpy); } else { strncpy(modulefile, modulename, sizeof(modulefile)-1); if ((mh=dlopen(modulefile, RTLD_GLOBAL|RTLD_NOW))==NULL) { | | | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | snprintf(modulefile, sizeof(modulefile)-1, "%s/%s.so",tmpbuf,modulename); if ((mh=dlopen(modulefile, RTLD_GLOBAL|RTLD_NOW))!=NULL) break; } free(mdircpy); } else { strncpy(modulefile, modulename, sizeof(modulefile)-1); if ((mh=dlopen(modulefile, RTLD_GLOBAL|RTLD_NOW))==NULL) { PRINTERRF("Could not load module: %s", dlerror()); return(DACT_MOD_FAIL); } } if (!mh) return(DACT_MOD_FAIL); if (dlsym(mh,"DC_NUM")==NULL \ || dlsym(mh, "DC_NAME")==NULL \ |
︙ | ︙ |