aboutsummaryrefslogtreecommitdiff
path: root/src/os/linux
diff options
context:
space:
mode:
authoriveresov <none@none>2011-05-10 12:26:10 -0700
committeriveresov <none@none>2011-05-10 12:26:10 -0700
commit10a7de1aeb018082dbac4d5bdc14f5c83b431178 (patch)
treeabcd7466a76132ef7244679d426bd00b699eba9b /src/os/linux
parent0c3f5890561cf9d555aae59652d75d8b97190a1c (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.cpp2
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;