From ba03e308b66b0b88f60b99d9d47851a5e1522e6e Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 10 Mar 2020 08:10:22 -0700 Subject: [PATCH] freedreno/fdperf: set locale Set local to get numbers printed w/ commas.. much easier to read that way. Signed-off-by: Rob Clark Tested-by: Marge Bot Part-of: --- src/freedreno/perfcntrs/fdperf.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include +#include #include #include #include @@ -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();