Mesa (master): gallium/hud: fix printing byte units
Marek Olšák
mareko at kemper.freedesktop.org
Thu Aug 6 18:50:40 UTC 2015
Module: Mesa
Branch: master
Commit: 130a03e360e6aebe93e86b1d522ebf22371aa2d4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=130a03e360e6aebe93e86b1d522ebf22371aa2d4
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Aug 2 17:08:29 2015 +0200
gallium/hud: fix printing byte units
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer 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[] =
More information about the mesa-commit
mailing list