Commit 1fcf60de authored by simonb's avatar simonb Committed by Commit bot

Tidy logcat message on test for mmap from apk.

Prefix CheckLibraryLoadFromApkSupport()'s result log line with
__FUNCTION__, for logging clarity.

Remove stray empty line.

BUG=390618

Review URL: https://codereview.chromium.org/659313005

Cr-Commit-Position: refs/heads/master@{#300260}
parent b50e5e53
......@@ -599,19 +599,18 @@ jboolean CheckLibraryLoadFromApkSupport(JNIEnv* env, jclass clazz,
__FUNCTION__, apkfile_name_c_str);
void* address = mmap(NULL, PAGE_SIZE, PROT_EXEC, MAP_PRIVATE, fd, 0);
jboolean success;
jboolean status;
if (address == MAP_FAILED) {
success = false;
status = false;
} else {
success = true;
status = true;
munmap(address, PAGE_SIZE);
}
close(fd);
LOG_INFO(" %ssupported\n", success ? "" : "NOT ");
return success;
LOG_INFO("%s: %s\n", __FUNCTION__, status ? "Supported" : "NOT supported");
return status;
}
const JNINativeMethod kNativeMethods[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment