From: Steven Rostedt (Red Hat) Date: Wed, 12 Nov 2014 16:35:48 +0000 (-0500) Subject: blktrace/tracing: Use trace_seq_has_overflowed() helper function X-Git-Tag: omap-for-v3.20/drop-legacy-3517~136^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a1d08ce65d7156504f2f0eac26f47dfc9120e6;p=pandora-kernel.git blktrace/tracing: Use trace_seq_has_overflowed() helper function Checking the return code of every trace_seq_printf() operation and having to return early if it overflowed makes the code messy. Using the new trace_seq_has_overflowed() and trace_handle_return() functions allows us to clean up the code. In the future, trace_seq_printf() and friends will be turning into void functions and not returning a value. The trace_seq_has_overflowed() is to be used instead. This cleanup allows that change to take place. Cc: Jens Axboe Reviewed-by: Petr Mladek Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed