Skip to content

Commit 933e856

Browse files
Steve BlockJean-Baptiste Queru
authored andcommitted
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a
1 parent 1afd5ba commit 933e856

File tree

104 files changed

+390
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+390
-390
lines changed

cmds/bootanimation/bootanimation_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int main(int argc, char** argv)
4747
char value[PROPERTY_VALUE_MAX];
4848
property_get("debug.sf.nobootanimation", value, "0");
4949
int noBootAnimation = atoi(value);
50-
LOGI_IF(noBootAnimation, "boot animation disabled");
50+
ALOGI_IF(noBootAnimation, "boot animation disabled");
5151
if (!noBootAnimation) {
5252

5353
sp<ProcessState> proc(ProcessState::self());

cmds/dumpstate/dumpstate.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ static void dumpstate() {
8484
dump_file("BUDDYINFO", "/proc/buddyinfo");
8585

8686
if (screenshot_path[0]) {
87-
LOGI("taking screenshot\n");
87+
ALOGI("taking screenshot\n");
8888
run_command(NULL, 5, "su", "root", "screenshot", screenshot_path, NULL);
89-
LOGI("wrote screenshot: %s\n", screenshot_path);
89+
ALOGI("wrote screenshot: %s\n", screenshot_path);
9090
}
9191

9292
run_command("SYSTEM LOG", 20, "logcat", "-v", "threadtime", "-d", "*:v", NULL);
@@ -271,7 +271,7 @@ int main(int argc, char *argv[]) {
271271
int use_socket = 0;
272272
int do_fb = 0;
273273

274-
LOGI("begin\n");
274+
ALOGI("begin\n");
275275

276276
/* set as high priority, and protect from OOM killer */
277277
setpriority(PRIO_PROCESS, 0, -20);
@@ -386,7 +386,7 @@ int main(int argc, char *argv[]) {
386386
fprintf(stderr, "rename(%s, %s): %s\n", tmp_path, path, strerror(errno));
387387
}
388388

389-
LOGI("done\n");
389+
ALOGI("done\n");
390390

391391
return 0;
392392
}

cmds/installd/commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ int free_cache(int64_t free_size)
189189
avail = disk_free();
190190
if (avail < 0) return -1;
191191

192-
LOGI("free_cache(%" PRId64 ") avail %" PRId64 "\n", free_size, avail);
192+
ALOGI("free_cache(%" PRId64 ") avail %" PRId64 "\n", free_size, avail);
193193
if (avail >= free_size) return 0;
194194

195195
if (create_persona_path(datadir, 0)) {

cmds/installd/installd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static int execute(int s, char cmd[BUFFER_MAX])
200200
unsigned short count;
201201
int ret = -1;
202202

203-
// LOGI("execute('%s')\n", cmd);
203+
// ALOGI("execute('%s')\n", cmd);
204204

205205
/* default reply is "" */
206206
reply[0] = 0;
@@ -242,7 +242,7 @@ static int execute(int s, char cmd[BUFFER_MAX])
242242
if (n > BUFFER_MAX) n = BUFFER_MAX;
243243
count = n;
244244

245-
// LOGI("reply: '%s'\n", cmd);
245+
// ALOGI("reply: '%s'\n", cmd);
246246
if (writex(s, &count, sizeof(count))) return -1;
247247
if (writex(s, cmd, count)) return -1;
248248
return 0;
@@ -380,7 +380,7 @@ int main(const int argc, const char *argv[]) {
380380
}
381381
fcntl(s, F_SETFD, FD_CLOEXEC);
382382

383-
LOGI("new connection\n");
383+
ALOGI("new connection\n");
384384
for (;;) {
385385
unsigned short count;
386386
if (readx(s, &count, sizeof(count))) {
@@ -398,7 +398,7 @@ int main(const int argc, const char *argv[]) {
398398
buf[count] = 0;
399399
if (execute(s, buf)) break;
400400
}
401-
LOGI("closing connection\n");
401+
ALOGI("closing connection\n");
402402
close(s);
403403
}
404404

cmds/keystore/keystore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ int main(int argc, char* argv[]) {
796796
} else {
797797
send_code(sock, response);
798798
}
799-
LOGI("uid: %d action: %c -> %d state: %d -> %d retry: %d",
799+
ALOGI("uid: %d action: %c -> %d state: %d -> %d retry: %d",
800800
cred.uid,
801801
request, response,
802802
old_state, keyStore.getState(),

cmds/servicemanager/service_manager.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "binder.h"
1212

1313
#if 0
14-
#define LOGI(x...) fprintf(stderr, "svcmgr: " x)
14+
#define ALOGI(x...) fprintf(stderr, "svcmgr: " x)
1515
#define LOGE(x...) fprintf(stderr, "svcmgr: " x)
1616
#else
1717
#define LOG_TAG "ServiceManager"
@@ -115,7 +115,7 @@ struct svcinfo *find_svc(uint16_t *s16, unsigned len)
115115
void svcinfo_death(struct binder_state *bs, void *ptr)
116116
{
117117
struct svcinfo *si = ptr;
118-
LOGI("service '%s' died\n", str8(si->name));
118+
ALOGI("service '%s' died\n", str8(si->name));
119119
if (si->ptr) {
120120
binder_release(bs, si->ptr);
121121
si->ptr = 0;
@@ -133,7 +133,7 @@ void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len)
133133
struct svcinfo *si;
134134
si = find_svc(s, len);
135135

136-
// LOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
136+
// ALOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
137137
if (si && si->ptr) {
138138
return si->ptr;
139139
} else {
@@ -146,7 +146,7 @@ int do_add_service(struct binder_state *bs,
146146
void *ptr, unsigned uid)
147147
{
148148
struct svcinfo *si;
149-
// LOGI("add_service('%s',%p) uid=%d\n", str8(s), ptr, uid);
149+
// ALOGI("add_service('%s',%p) uid=%d\n", str8(s), ptr, uid);
150150

151151
if (!ptr || (len == 0) || (len > 127))
152152
return -1;
@@ -198,7 +198,7 @@ int svcmgr_handler(struct binder_state *bs,
198198
void *ptr;
199199
uint32_t strict_policy;
200200

201-
// LOGI("target=%p code=%d pid=%d uid=%d\n",
201+
// ALOGI("target=%p code=%d pid=%d uid=%d\n",
202202
// txn->target, txn->code, txn->sender_pid, txn->sender_euid);
203203

204204
if (txn->target != svcmgr_handle)

cmds/stagefright/record.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class DummySource : public MediaSource {
9696
++mNumFramesOutput;
9797

9898
// printf("DummySource::read - returning buffer\n");
99-
// LOGI("DummySource::read - returning buffer");
99+
// ALOGI("DummySource::read - returning buffer");
100100
return OK;
101101
}
102102

cmds/stagefright/stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void MyStreamSource::onBufferAvailable(size_t index) {
9090

9191
#if 0
9292
if (mNumPacketsSent >= 20000) {
93-
LOGI("signalling discontinuity now");
93+
ALOGI("signalling discontinuity now");
9494

9595
off64_t offset = 0;
9696
CHECK((offset % 188) == 0);

cmds/system_server/library/system_init.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class GrimReaper : public IBinder::DeathRecipient {
4242

4343
virtual void binderDied(const wp<IBinder>& who)
4444
{
45-
LOGI("Grim Reaper killing system_server...");
45+
ALOGI("Grim Reaper killing system_server...");
4646
kill(getpid(), SIGKILL);
4747
}
4848
};
@@ -53,12 +53,12 @@ class GrimReaper : public IBinder::DeathRecipient {
5353

5454
extern "C" status_t system_init()
5555
{
56-
LOGI("Entered system_init()");
56+
ALOGI("Entered system_init()");
5757

5858
sp<ProcessState> proc(ProcessState::self());
5959

6060
sp<IServiceManager> sm = defaultServiceManager();
61-
LOGI("ServiceManager: %p\n", sm.get());
61+
ALOGI("ServiceManager: %p\n", sm.get());
6262

6363
sp<GrimReaper> grim = new GrimReaper();
6464
sm->asBinder()->linkToDeath(grim, grim.get(), 0);
@@ -82,10 +82,10 @@ extern "C" status_t system_init()
8282
// All other servers should just start the Android runtime at
8383
// the beginning of their processes's main(), before calling
8484
// the init function.
85-
LOGI("System server: starting Android runtime.\n");
85+
ALOGI("System server: starting Android runtime.\n");
8686
AndroidRuntime* runtime = AndroidRuntime::getRuntime();
8787

88-
LOGI("System server: starting Android services.\n");
88+
ALOGI("System server: starting Android services.\n");
8989
JNIEnv* env = runtime->getJNIEnv();
9090
if (env == NULL) {
9191
return UNKNOWN_ERROR;
@@ -100,10 +100,10 @@ extern "C" status_t system_init()
100100
}
101101
env->CallStaticVoidMethod(clazz, methodId);
102102

103-
LOGI("System server: entering thread pool.\n");
103+
ALOGI("System server: entering thread pool.\n");
104104
ProcessState::self()->startThreadPool();
105105
IPCThreadState::self()->joinThreadPool();
106-
LOGI("System server: exiting thread pool.\n");
106+
ALOGI("System server: exiting thread pool.\n");
107107

108108
return NO_ERROR;
109109
}

cmds/system_server/system_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void blockSignals()
4444

4545
int main(int argc, const char* const argv[])
4646
{
47-
LOGI("System server is starting with pid=%d.\n", getpid());
47+
ALOGI("System server is starting with pid=%d.\n", getpid());
4848

4949
blockSignals();
5050

0 commit comments

Comments
 (0)