aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index bb3e0ede6183..893f8e2df928 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -930,7 +930,7 @@ static int write_topo_node(int fd, int node)
930 /* skip over invalid lines */ 930 /* skip over invalid lines */
931 if (!strchr(buf, ':')) 931 if (!strchr(buf, ':'))
932 continue; 932 continue;
933 if (sscanf(buf, "%*s %*d %s %"PRIu64, field, &mem) != 2) 933 if (sscanf(buf, "%*s %*d %31s %"PRIu64, field, &mem) != 2)
934 goto done; 934 goto done;
935 if (!strcmp(field, "MemTotal:")) 935 if (!strcmp(field, "MemTotal:"))
936 mem_total = mem; 936 mem_total = mem;