diff options
author | Rob Clark <[email protected]> | 2020-03-10 08:10:22 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-10 16:52:02 +0000 |
commit | ba03e308b66b0b88f60b99d9d47851a5e1522e6e (patch) | |
tree | 3193adc3e2cf1c4f5d85d2b60130c5765176b178 /src/freedreno/perfcntrs | |
parent | 30dd0599250c4743ded25663d32c263ab226510c (diff) |
freedreno/fdperf: set locale
Set local to get numbers printed w/ commas.. much easier to read that
way.
Signed-off-by: Rob Clark <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4119>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4119>
Diffstat (limited to 'src/freedreno/perfcntrs')
-rw-r--r-- | src/freedreno/perfcntrs/fdperf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freedreno/perfcntrs/fdperf.c b/src/freedreno/perfcntrs/fdperf.c index 3c3b9912b3f..3eb2f827a8d 100644 --- a/src/freedreno/perfcntrs/fdperf.c +++ b/src/freedreno/perfcntrs/fdperf.c @@ -28,6 +28,7 @@ #include <err.h> #include <fcntl.h> #include <ftw.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1085,6 +1086,8 @@ main(int argc, char **argv) dev.groups = calloc(dev.ngroups, sizeof(struct counter_group)); + setlocale(LC_NUMERIC, "en_US.UTF-8"); + setup_counter_groups(groups); restore_counter_groups(); config_restore(); |