]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Remove return values of most trace_seq_*() functions
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 12 Nov 2014 23:07:22 +0000 (18:07 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Nov 2014 20:25:47 +0000 (15:25 -0500)
commit41ad12f0ce2752bb364880c4894386ad92c6c073
tree8458bc1b3deda29028656637c84a5d0e10800578
parent7deff2f0cb5fec068b0fe49cd11a16bc0cdf3d98
tracing: Remove return values of most trace_seq_*() functions

The trace_seq_printf() and friends are used to store strings into a buffer
that can be passed around from function to function. If the trace_seq buffer
fills up, it will not print any more. The return values were somewhat
inconsistant and using trace_seq_has_overflowed() was a better way to know
if the write to the trace_seq buffer succeeded or not.

Now that all users have removed reading the return value of the printf()
type functions, they can safely return void and keep future users of them
from reading the inconsistent values as well.

Link: http://lkml.kernel.org/r/20141114011411.992510720@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/trace_seq.h
kernel/trace/trace_seq.c