diff src/os/linux/vm/os_linux.cpp @ 2602:97b64f73103b

7043564: compile warning and copyright fixes Summary: Fixed the warning, also fixed copyrights in a bunch of files. Reviewed-by: johnc, kvn
author iveresov
date Tue, 10 May 2011 12:26:10 -0700
parents 188c9a5d6a6d
children af1c92690fa4 bf6481e5f96d
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Tue May 10 00:33:21 2011 -0700
+++ b/src/os/linux/vm/os_linux.cpp	Tue May 10 12:26:10 2011 -0700
@@ -2850,7 +2850,7 @@
         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;