Fix log call output format error. (DO NOT MERGE)

Cherry picked from googleplex-android c/445200.

BUG: 17916851
Change-Id: If4077e94d6dc7ef31ecf09cbcf41091c7e30268f
This commit is contained in:
Chih-Hung Hsieh
2014-10-08 10:50:23 -07:00
committed by Jeff Brown
parent 6ba13ac566
commit e07c9f140e
2 changed files with 2 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ static jlong init_timerfd()
epollfd = epoll_create(N_ANDROID_TIMERFDS);
if (epollfd < 0) {
ALOGV("epoll_create(%u) failed: %s", N_ANDROID_TIMERFDS,
ALOGV("epoll_create(%zu) failed: %s", N_ANDROID_TIMERFDS,
strerror(errno));
return 0;
}

View File

@@ -1244,7 +1244,7 @@ static void nativeVibrate(JNIEnv* env,
size_t patternSize = env->GetArrayLength(patternObj);
if (patternSize > MAX_VIBRATE_PATTERN_SIZE) {
ALOGI("Skipped requested vibration because the pattern size is %d "
ALOGI("Skipped requested vibration because the pattern size is %zd "
"which is more than the maximum supported size of %d.",
patternSize, MAX_VIBRATE_PATTERN_SIZE);
return; // limit to reasonable size