about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-09 23:53:59 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-09 23:54:43 -0700
commit75d049746e374303fb1c8ee038687dca125c6817 (patch)
treea3ad2b4fb1b93066b645148b8a8b601c850a20e8
parentbcf7eb013fc3e8719229256f40c33ced212dd815 (diff)
downloadpcu-75d049746e374303fb1c8ee038687dca125c6817.tar.gz
mincore: Only the first bit of the byte is defined
The other 7 bits are undefined at the moment.
-rw-r--r--mincore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mincore.c b/mincore.c
index 0379481..41adf7b 100644
--- a/mincore.c
+++ b/mincore.c
@@ -54,7 +54,7 @@ static void mincore_stats(const char *path, off_t offset, off_t len)
         for (i = 0; i < vec_len; ++i)
                 printf(fmt, path,
                        (unsigned long)(page_size() * i) + map_offset,
-                       vec[i]);
+                       vec[i] & 1);
 err_munmap:
         munmap(map, map_len);
 err_free: