summaryrefslogtreecommitdiffstats
path: root/rild
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-11-19 16:05:13 -0800
committerWink Saville <wink@google.com>2012-12-08 08:29:43 -0800
commit8eb2a12cb7b525e74736300962a5f3848427275a (patch)
treeecf42cdb53d13833956009af5a703de626d585dd /rild
parentd216ab2b5b82a60505205e62f881bb26ead845a7 (diff)
downloadandroid_hardware_ril-8eb2a12cb7b525e74736300962a5f3848427275a.tar.gz
android_hardware_ril-8eb2a12cb7b525e74736300962a5f3848427275a.tar.bz2
android_hardware_ril-8eb2a12cb7b525e74736300962a5f3848427275a.zip
Add RLOGx
This will eventually allow us to remove the code in logd_write.c#__android_log_write which uses the tag to direct logs to the radio buffer. Change-Id: I7a6a966bc12e59a3ec68a56a41dd681fb325dfd8
Diffstat (limited to 'rild')
-rw-r--r--rild/rild.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/rild/rild.c b/rild/rild.c
index b1c5bac..9e57e89 100644
--- a/rild/rild.c
+++ b/rild/rild.c
@@ -148,7 +148,7 @@ int main(int argc, char **argv)
int fd = open("/proc/cmdline",O_RDONLY);
if (fd < 0) {
- ALOGD("could not open /proc/cmdline:%s", strerror(errno));
+ RLOGD("could not open /proc/cmdline:%s", strerror(errno));
goto OpenLib;
}
@@ -157,7 +157,7 @@ int main(int argc, char **argv)
while (len == -1 && errno == EINTR);
if (len < 0) {
- ALOGD("could not read /proc/cmdline:%s", strerror(errno));
+ RLOGD("could not read /proc/cmdline:%s", strerror(errno));
close(fd);
goto OpenLib;
}
@@ -193,13 +193,13 @@ int main(int argc, char **argv)
done = 1;
break;
}
- ALOGD("could not connect to %s socket: %s",
+ RLOGD("could not connect to %s socket: %s",
QEMUD_SOCKET_NAME, strerror(errno));
if (--tries == 0)
break;
}
if (!done) {
- ALOGE("could not connect to %s socket (giving up): %s",
+ RLOGE("could not connect to %s socket (giving up): %s",
QEMUD_SOCKET_NAME, strerror(errno));
while(1)
sleep(0x00ffffff);
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
hasLibArgs = 1;
rilLibPath = REFERENCE_RIL_PATH;
- ALOGD("overriding with %s %s", arg_overrides[1], arg_overrides[2]);
+ RLOGD("overriding with %s %s", arg_overrides[1], arg_overrides[2]);
}
}
OpenLib:
@@ -245,7 +245,7 @@ OpenLib:
dlHandle = dlopen(rilLibPath, RTLD_NOW);
if (dlHandle == NULL) {
- ALOGE("dlopen failed: %s", dlerror());
+ RLOGE("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) {
- ALOGE("RIL_Init not defined or exported in %s\n", rilLibPath);
+ RLOGE("RIL_Init not defined or exported in %s\n", rilLibPath);
exit(-1);
}