perf tools: Pass build_id object to build_id__sprintf()
Passing build_id object to build_id__sprintf function, so it can operate with the proper size of build id. This will create proper md5 build id readable names, like following: a50e350e97c43b4708d09bcd85ebfff7 instead of: a50e350e97c43b4708d09bcd85ebfff700000000 Signed-off-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20201013192441.1299447-5-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
3ff1b8c8cc
commit
bf5411695a
@@ -1578,8 +1578,7 @@ int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, s
|
||||
char *build_id_msg = NULL;
|
||||
|
||||
if (dso->has_build_id) {
|
||||
build_id__sprintf(dso->bid.data,
|
||||
sizeof(dso->bid.data), bf + 15);
|
||||
build_id__sprintf(&dso->bid, bf + 15);
|
||||
build_id_msg = bf;
|
||||
}
|
||||
scnprintf(buf, buflen,
|
||||
|
||||
Reference in New Issue
Block a user