This allows the errors to be seen in the log, otherwise there is
no visibility unless you run rild from the command line.
Change-Id: Id6c25eeef6c2cb118c2dff80a9d3742b99563bde
dlHandle = dlopen(rilLibPath, RTLD_NOW);
if (dlHandle == NULL) {
- fprintf(stderr, "dlopen failed: %s\n", dlerror());
+ ALOGE("dlopen failed: %s", dlerror());
exit(-1);
}
rilInit = (const RIL_RadioFunctions *(*)(const struct RIL_Env *, int, char **))dlsym(dlHandle, "RIL_Init");
if (rilInit == NULL) {
- fprintf(stderr, "RIL_Init not defined or exported in %s\n", rilLibPath);
+ ALOGE("RIL_Init not defined or exported in %s\n", rilLibPath);
exit(-1);
}