diff options
| author | Calin Juravle <calin@google.com> | 2016-01-12 12:04:43 -0800 |
|---|---|---|
| committer | Calin Juravle <calin@google.com> | 2016-01-12 12:24:16 -0800 |
| commit | 6d5017803e5fec20fb0e1ee178412748eb2b7279 (patch) | |
| tree | d36e60eeff0ce040a7a99f3cfa02488f12991a4e /libnativebridge | |
| parent | fd3c12d22403860506da56e763cdf3c373f6cd86 (diff) | |
| download | system_core-6d5017803e5fec20fb0e1ee178412748eb2b7279.tar.gz system_core-6d5017803e5fec20fb0e1ee178412748eb2b7279.tar.bz2 system_core-6d5017803e5fec20fb0e1ee178412748eb2b7279.zip | |
nativebrige: log code_cache access errors to stderr as well
115-native-bridge is a flaky tests. This will help tracing the flakiness
cause.
Change-Id: I7b8000738cd97b9cdb1055a0480ff9acbd85cae6
Diffstat (limited to 'libnativebridge')
| -rw-r--r-- | libnativebridge/native_bridge.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libnativebridge/native_bridge.cc b/libnativebridge/native_bridge.cc index 32a65ea04..4eff89115 100644 --- a/libnativebridge/native_bridge.cc +++ b/libnativebridge/native_bridge.cc @@ -413,14 +413,19 @@ 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(); } |
