From: Namhyung Kim Date: Wed, 22 Aug 2012 07:00:31 +0000 (+0900) Subject: tools lib traceevent: Fix strerror_r() use in pevent_strerror X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~97^2~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1aa7c30c599e99b4544f9e5b4c275c8a5325bdc;p=pandora-kernel.git 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 Acked-by: Kirill A. Shutemov Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Kirill A. Shutemov Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1345618831-9148-5-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed