diff options
author | iveresov <none@none> | 2011-05-10 12:26:10 -0700 |
---|---|---|
committer | iveresov <none@none> | 2011-05-10 12:26:10 -0700 |
commit | 10a7de1aeb018082dbac4d5bdc14f5c83b431178 (patch) | |
tree | abcd7466a76132ef7244679d426bd00b699eba9b /src/os/linux | |
parent | 0c3f5890561cf9d555aae59652d75d8b97190a1c (diff) |
7043564: compile warning and copyright fixes
Summary: Fixed the warning, also fixed copyrights in a bunch of files.
Reviewed-by: johnc, kvn
Diffstat (limited to 'src/os/linux')
-rw-r--r-- | src/os/linux/vm/os_linux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/linux/vm/os_linux.cpp b/src/os/linux/vm/os_linux.cpp index f00e426b8..791f62ecb 100644 --- a/src/os/linux/vm/os_linux.cpp +++ b/src/os/linux/vm/os_linux.cpp @@ -2850,7 +2850,7 @@ bool os::Linux::hugetlbfs_sanity_check(bool warn, size_t page_size) { char chars[257]; long x = 0; if (fgets(chars, sizeof(chars), fp)) { - if (sscanf(chars, "%lx-%*lx", &x) == 1 + if (sscanf(chars, "%lx-%*x", &x) == 1 && x == (long)p) { if (strstr (chars, "hugepage")) { result = true; |