[PATCH 3/2] smaps say kB not KB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/proc/$pid/smaps should be reporting in "kB" not "KB"
(and pray that this doesn't start another kibibytes war ;)

Signed-off-by: Hugh Dickins <[email protected]>
---

 fs/proc/task_mmu.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

--- smaps2/fs/proc/task_mmu.c	2005-07-09 02:29:33.000000000 +0100
+++ smaps3/fs/proc/task_mmu.c	2005-07-11 18:09:13.000000000 +0100
@@ -271,12 +271,12 @@ static int show_smap(struct seq_file *m,
 		seq_path(m, file->f_vfsmnt, file->f_dentry, " \t\n\\");
 
 	seq_printf(m, "\n"
-		   "Size:          %8lu KB\n"
-		   "Rss:           %8lu KB\n"
-		   "Shared_Clean:  %8lu KB\n"
-		   "Shared_Dirty:  %8lu KB\n"
-		   "Private_Clean: %8lu KB\n"
-		   "Private_Dirty: %8lu KB\n",
+		   "Size:          %8lu kB\n"
+		   "Rss:           %8lu kB\n"
+		   "Shared_Clean:  %8lu kB\n"
+		   "Shared_Dirty:  %8lu kB\n"
+		   "Private_Clean: %8lu kB\n"
+		   "Private_Dirty: %8lu kB\n",
 		   vma_len >> 10,
 		   mss.resident >> 10,
 		   mss.shared_clean  >> 10,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux