Merge "Revert "nativebrige: log code_cache access errors to stderr as well""

This commit is contained in:
Calin Juravle 2016-01-27 17:58:18 +00:00 committed by Gerrit Code Review
commit 8b999d894f
1 changed files with 0 additions and 5 deletions

View File

@ -413,19 +413,14 @@ bool InitializeNativeBridge(JNIEnv* env, const char* instruction_set) {
if (errno == ENOENT) {
if (mkdir(app_code_cache_dir, S_IRWXU | S_IRWXG | S_IXOTH) == -1) {
ALOGW("Cannot create code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
fprintf(stderr, "Cannot create code cache directory %s: %s.",
app_code_cache_dir, strerror(errno));
ReleaseAppCodeCacheDir();
}
} else {
ALOGW("Cannot stat code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
fprintf(stderr, "Cannot stat code cache directory %s: %s.",
app_code_cache_dir, strerror(errno));
ReleaseAppCodeCacheDir();
}
} else if (!S_ISDIR(st.st_mode)) {
ALOGW("Code cache is not a directory %s.", app_code_cache_dir);
fprintf(stderr, "Code cache is not a directory %s.", app_code_cache_dir);
ReleaseAppCodeCacheDir();
}