Skip to content
Snippets Groups Projects
Commit 210e4c89 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf symbols: Fix dso__fprintf_symbols_by_name() to return the number of printed chars


The 'ret' variable was initialized to zero but then it was not updated
from the fprintf() return, fix it.

Reported-by: default avatarYang Li <yang.lee@linux.alibaba.com>
cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
cc: Ingo Molnar <mingo@redhat.com>
cc: Jiri Olsa <jolsa@redhat.com>
cc: Mark Rutland <mark.rutland@arm.com>
cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Fixes: 90f18e63 ("perf symbols: List symbols in a dso in ascending name order")
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 2942a671
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment