1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_BUG()</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Writing an ALSA Driver"><link rel="up" href="useful-functions.html" title="Chapter 16. Useful Functions"><link rel="prev" href="useful-functions.html" title="Chapter 16. Useful Functions"><link rel="next" href="useful-functions-snd-bug-on.html" title="snd_BUG_ON()"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><code class="function">snd_BUG()</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="useful-functions.html">Prev</a> </td><th width="60%" align="center">Chapter 16. Useful Functions</th><td width="20%" align="right"> <a accesskey="n" href="useful-functions-snd-bug-on.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="useful-functions-snd-bug"></a><code class="function">snd_BUG()</code></h2></div></div></div><p> 2 It shows the <code class="computeroutput">BUG?</code> message and 3 stack trace as well as <code class="function">snd_BUG_ON</code> at the point. 4 It's useful to show that a fatal error happens there. 5 </p><p> 6 When no debug flag is set, this macro is ignored. 7 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="useful-functions.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="useful-functions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="useful-functions-snd-bug-on.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 16. Useful Functions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <code class="function">snd_BUG_ON()</code></td></tr></table></div></body></html> 8