cvs commit: src/sys/sys lock.h src/sys/vm uma_core.c

John Baldwin jhb at FreeBSD.org
Fri Jan 27 14:20:15 PST 2006


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


More information about the cvs-src mailing list