diff options
author | Namhyung Kim <[email protected]> | 2012-08-22 16:00:31 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-08-22 16:04:05 -0300 |
commit | e1aa7c30c599e99b4544f9e5b4c275c8a5325bdc (patch) | |
tree | 7d6bc8f37c52b63f49508aa1e0ab4ba2699be790 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2f197b9d7eeaa723a80243610956fe4a17e7b5a4 (diff) |
tools lib traceevent: Fix strerror_r() use in pevent_strerror
glibc-2.16 starts to mark the function with attribute warn_unused_result
so that it can cause a build warning.
Since GNU version of strerror_r() can return a pointer to a string
without setting @buf, check the return value and copy/truncate it to our
buffer if needed.
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions