* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
- *
- * $Id: s_log.c 3209 2007-02-11 16:54:43Z jilles $
*/
#include "stdinc.h"
fprintf(stderr, "%8s: %s\n", domain, buf);
}
+void
+idebug(const char *format, ...)
+{
+#ifndef NDEBUG
+ char buf[BUFSIZE];
+ va_list args;
+
+ va_start(args, format);
+ vsnprintf(buf, sizeof(buf), format, args);
+ va_end(args);
+
+ _iprint("debug", buf);
+
+ ilog(L_MAIN, "%s", buf);
+#endif
+}
+
void
inotice(const char *format, ...)
{