Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I9d2c4a1a9b0edda94f2eeacc1f4d270bf4d66804
This commit is contained in:
parent
2ce3102288
commit
8b3fe9b3cf
3 changed files with 6 additions and 6 deletions
|
@ -43,14 +43,14 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
#define E(x...) do { \
|
#define E(x...) do { \
|
||||||
fprintf(stderr, "%s(%d) ", __FUNCTION__, __LINE__); \
|
fprintf(stderr, "%s(%d) ", __FUNCTION__, __LINE__); \
|
||||||
fprintf(stderr, ##x); \
|
fprintf(stderr, ##x); \
|
||||||
LOGE(x); \
|
ALOGE(x); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define FAILIF(cond, msg...) do { \
|
#define FAILIF(cond, msg...) do { \
|
||||||
if (__builtin_expect (cond, 0)) { \
|
if (__builtin_expect (cond, 0)) { \
|
||||||
fprintf(stderr, "%s:%s:(%d): ", __FILE__, __FUNCTION__, __LINE__); \
|
fprintf(stderr, "%s:%s:(%d): ", __FILE__, __FUNCTION__, __LINE__); \
|
||||||
fprintf(stderr, ##msg); \
|
fprintf(stderr, ##msg); \
|
||||||
LOGE(##msg); \
|
ALOGE(##msg); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
|
|
@ -402,7 +402,7 @@ static void loc_ni_request_handler(const char *msg, const rpc_loc_ni_event_s_typ
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOGE("loc_ni_request_handler, unknown request event: %d", ni_req->event);
|
ALOGE("loc_ni_request_handler, unknown request event: %d", ni_req->event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ int loc_eng_ni_callback (
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOGE("Unknown NI event: %x\n", (int) ni_req->event);
|
ALOGE("Unknown NI event: %x\n", (int) ni_req->event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -603,7 +603,7 @@ void loc_eng_ni_respond(int notif_id, GpsUserResponseType user_response)
|
||||||
ALOGI("loc_eng_ni_respond: send user response %d for notif %d", user_response, notif_id);
|
ALOGI("loc_eng_ni_respond: send user response %d for notif %d", user_response, notif_id);
|
||||||
loc_ni_process_user_response(user_response);
|
loc_ni_process_user_response(user_response);
|
||||||
} else {
|
} else {
|
||||||
LOGE("loc_eng_ni_respond: notif_id %d mismatch or notification not in progress, response: %d",
|
ALOGE("loc_eng_ni_respond: notif_id %d mismatch or notification not in progress, response: %d",
|
||||||
notif_id, user_response);
|
notif_id, user_response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,7 @@ static int qct_loc_eng_inject_xtra_data(char* data, int length)
|
||||||
|
|
||||||
if (rpc_ret_val != RPC_LOC_API_SUCCESS)
|
if (rpc_ret_val != RPC_LOC_API_SUCCESS)
|
||||||
{
|
{
|
||||||
LOGE ("loc_ioctl for xtra returned %d \n", rpc_ret_val);
|
ALOGE ("loc_ioctl for xtra returned %d \n", rpc_ret_val);
|
||||||
ret_val = EINVAL; // return error
|
ret_val = EINVAL; // return error
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue