aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--procfs_nonpid_files.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 67a106b8..47cbeaf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Print swap sizes
+ using %llu.
+
2008-12-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
* procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Divide by
diff --git a/procfs_nonpid_files.c b/procfs_nonpid_files.c
index d8b3a7d1..2c1209ee 100644
--- a/procfs_nonpid_files.c
+++ b/procfs_nonpid_files.c
@@ -412,8 +412,8 @@ error_t procfs_read_nonpid_meminfo (struct dir_entry *dir_entry,
"HighFree:\t%lu kB\n"
"LowTotal:\t%lu kB\n"
"LowFree:\t%lu kB\n"
- "SwapTotal:\t%lu kB\n"
- "SwapFree:\t%lu kB\n",
+ "SwapTotal:\t%llu kB\n"
+ "SwapFree:\t%llu kB\n",
mem_size, (PAGES_TO_BYTES(vmstats.free_count)) / 1024 , 0, 0, 0,
(PAGES_TO_BYTES(vmstats.active_count)) / 1024,
(PAGES_TO_BYTES(vmstats.inactive_count)) / 1024, 0, 0, 0, 0,