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)
115115void 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 )
0 commit comments