diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-23 18:23:02 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-24 12:08:30 -0300 |
commit | 17e44dc46f035ca27847bbf75ffd3072ed49f13c (patch) | |
tree | d067492224b46395beccdf48c1d75fd8552dad50 /net/unix/sysctl_net_unix.c | |
parent | e1e455f4f4d35850c30235747620d0d078fe9f64 (diff) |
perf target: Simplify handling of strerror_r return
To deal with forwarding the strerror_r (GNU) return we need to check if
the returned value is the buffer we passed or maybe some constant
(unknown error), simplify that action by using scnprintf, that will do
all the buflen size checks, trimming if needed.
Acked-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions