[Mesa-dev] [PATCH 02/11] gallium/hud: fix printing byte units

Marek Olšák maraeo at gmail.com
Mon Aug 3 05:42:04 PDT 2015


From: Marek Olšák <marek.olsak at amd.com>

---
 src/gallium/auxiliary/hud/hud_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index e10152e..e0ca29d 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -235,7 +235,7 @@ number_to_human_readable(uint64_t num, enum pipe_driver_query_type type,
                          char *out)
 {
    static const char *byte_units[] =
-      {"", " KB", " MB", " GB", " TB", " PB", " EB"};
+      {" B", " KB", " MB", " GB", " TB", " PB", " EB"};
    static const char *metric_units[] =
       {"", " k", " M", " G", " T", " P", " E"};
    static const char *time_units[] =
-- 
2.1.4



More information about the mesa-dev mailing list