Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 22:20:15 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys lock.h src/sys/vm uma_core.c
Message-ID:  <200601272220.k0RMKFX5061849@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-01-27 22:20:15 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              lock.h 
    sys/vm               uma_core.c 
  Log:
  Add a new macro wrapper WITNESS_CHECK() around the witness_warn() function.
  The difference between WITNESS_CHECK() and WITNESS_WARN() is that
  WITNESS_CHECK() should be used in the places that the return value of
  witness_warn() is checked, whereas WITNESS_WARN() should be used in places
  where the return value is ignored.  Specifically, in a kernel without
  WITNESS enabled, WITNESS_WARN() evaluates to an empty string where as
  WITNESS_CHECK evaluates to 0.  I also updated the one place that was
  checking the return value of WITNESS_WARN() to use WITNESS_CHECK.
  
  Revision  Changes    Path
  1.57      +4 -0      src/sys/sys/lock.h
  1.135     +1 -1      src/sys/vm/uma_core.c



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