Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2010 18:26:38 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/hastd pjdlog.c pjdlog.h
Message-ID:  <201008051826.o75IQwnt032444@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008051826.o75IQwnt032444>