src/os/linux/vm/os_linux.cpp

changeset 2890
97b64f73103b
parent 2850
188c9a5d6a6d
child 2997
bf6481e5f96d
     1.1 --- a/src/os/linux/vm/os_linux.cpp	Tue May 10 00:33:21 2011 -0700
     1.2 +++ b/src/os/linux/vm/os_linux.cpp	Tue May 10 12:26:10 2011 -0700
     1.3 @@ -2850,7 +2850,7 @@
     1.4          char chars[257];
     1.5          long x = 0;
     1.6          if (fgets(chars, sizeof(chars), fp)) {
     1.7 -          if (sscanf(chars, "%lx-%*lx", &x) == 1
     1.8 +          if (sscanf(chars, "%lx-%*x", &x) == 1
     1.9                && x == (long)p) {
    1.10              if (strstr (chars, "hugepage")) {
    1.11                result = true;

mercurial