diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-05-31 02:23:00 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 01:46:16 +0200 |
commit | bb60526834227fddb97e14bd80fccc405932e352 (patch) | |
tree | 13d67c55428691e6fbf9cef6e448f0340d39071d | |
parent | 2f4aea7d25b7aeca6ee36126a375644acfab3cee (diff) |
2010-05-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
* procfs_nonpid_files.c (procfs_read_nonpid_meminfo): Print swap sizes
using %llu.
-rw-r--r-- | procfs_nonpid_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |