summaryrefslogtreecommitdiffstats
path: root/rild
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-08-28 15:42:46 -0700
committerWink Saville <wink@google.com>2012-08-28 15:42:46 -0700
commit188d84fb9121a2c92f9c1b8dbae36a3255417b88 (patch)
tree7c2317b783523af6bd57f4d2a3eeafd9f543481c /rild
parent183b1d020f847abee137c2ecb5d83f150fdfa470 (diff)
downloadandroid_hardware_ril-188d84fb9121a2c92f9c1b8dbae36a3255417b88.tar.gz
android_hardware_ril-188d84fb9121a2c92f9c1b8dbae36a3255417b88.tar.bz2
android_hardware_ril-188d84fb9121a2c92f9c1b8dbae36a3255417b88.zip
Use ALOGE instead of fprintf in rild
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
Diffstat (limited to 'rild')
-rw-r--r--rild/rild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rild/rild.c b/rild/rild.c
index 77dec1e..b1c5bac 100644
--- a/rild/rild.c
+++ b/rild/rild.c
@@ -245,7 +245,7 @@ OpenLib:
dlHandle = dlopen(rilLibPath, RTLD_NOW);
if (dlHandle == NULL) {
- fprintf(stderr, "dlopen failed: %s\n", dlerror());
+ ALOGE("dlopen failed: %s", dlerror());
exit(-1);
}
@@ -254,7 +254,7 @@ OpenLib:
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);
}