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
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 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 @@
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 @@
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 @@
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 @@
dlHandle = dlopen(rilLibPath, RTLD_NOW);
if (dlHandle == NULL) {
- ALOGE("dlopen failed: %s", dlerror());
+ RLOGE("dlopen failed: %s", dlerror());
exit(-1);
}
@@ -254,7 +254,7 @@
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);
}