From: Steven Rostedt Date: Tue, 11 Nov 2008 04:07:30 +0000 (-0500) Subject: ring-buffer: replace most bug ons with warn on and disable buffer X-Git-Tag: v2.6.29-rc1~586^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f536aafc5a2e6f0c8f1577a155e6f93db5e469f0;p=pandora-kernel.git ring-buffer: replace most bug ons with warn on and disable buffer This patch replaces most of the BUG_ONs in the ring_buffer code with RB_WARN_ON variants. It adds some more variants as needed for the replacement. This lets the buffer die nicely and still warn the user. One BUG_ON remains in the code, and that is because it detects a bad pointer passed in by the calling function, and not a bug by the ring buffer code itself. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed