From owner-cvs-src-old@FreeBSD.ORG Thu Aug 5 18:26:58 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EDBF106567C for ; Thu, 5 Aug 2010 18:26:58 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8168FC12 for ; Thu, 5 Aug 2010 18:26:58 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o75IQw19032445 for ; Thu, 5 Aug 2010 18:26:58 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o75IQwnt032444 for cvs-src-old@freebsd.org; Thu, 5 Aug 2010 18:26:58 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201008051826.o75IQwnt032444@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Thu, 5 Aug 2010 18:26:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd pjdlog.c pjdlog.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 18:26:58 -0000 pjd 2010-08-05 18:26:38 UTC FreeBSD src repository Modified files: sbin/hastd pjdlog.c pjdlog.h Log: SVN rev 210875 on 2010-08-05 18:26:38Z by pjd Problem with assertion is that it logs on stderr. Add two macros: PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition and log the problem where appropriate. The difference between those two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be turned off by defining NDEBUG. MFC after: 1 month Revision Changes Path 1.5 +20 -0 src/sbin/hastd/pjdlog.c 1.2 +13 -0 src/sbin/hastd/pjdlog.h