mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
With CONFIG_BUG=y both BUG() and BUG_ON(1) halt the system. However, with CONFIG_BUG=n BUG() halts the system but BUG_ON(1) not. To avoid such subtleties, change BUG_ON(1) into BUG(). See also patch Josh Triplett, "bug: Make BUG() always stop the machine", 7 April 2014 (commit ID a4b5d580e07875f9be29f62a57c67fbbdbb40ba2). Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5618 d57e44dd-8a1f-0410-8b47-8ef2f437770f