[PATCH] blkparse: fix wrong suffix in size_cnv()

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

 



The next suffix to Giga(G) is Tera(T) not Peta(P).

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
---
 blkparse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/blkparse.c b/blkparse.c
index 7ee9f9d..1abbd0b 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -1630,7 +1630,7 @@ static void dump_trace(struct blk_io_trace *t, struct per_cpu_info *pci,
  */
 static char *size_cnv(char *dst, unsigned long long num, int in_kb)
 {
-	char suff[] = { '\0', 'K', 'M', 'G', 'P' };
+	char suff[] = { '\0', 'K', 'M', 'G', 'T' };
 	unsigned int i = 0;
 
 	if (in_kb)
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux