summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/levenshtein.c
diff options
context:
space:
mode:
authorDavid Carrillo-Cisneros <davidcc@google.com>2017-07-17 21:25:36 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-18 23:14:29 -0300
commit2ff5365d75e164032f64133914046fd6be213d94 (patch)
treefa0c53e4f10caa6b96cb143d34551e9b0278eb97 /tools/perf/util/levenshtein.c
parentdfaa1580efcfb6b9537043ba0447747d7179fb26 (diff)
downloadlinux-2ff5365d75e164032f64133914046fd6be213d94.tar.bz2
perf header: Fail on write_padded error
Do not proceed if write_padded() error failed. Also, add comments to remind that the return value of write_* functions in util/header.c is an errno code and not the number of bytes written. Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> Acked-by: David Ahern <dsahern@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: He Kuang <hekuang@huawei.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Turner <pjt@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Simon Que <sque@chromium.org> Cc: Stephane Eranian <eranian@google.com> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/20170718042549.145161-4-davidcc@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/levenshtein.c')
0 files changed, 0 insertions, 0 deletions