cvs commit: src/sys/kern sched_4bsd.c
    Dag-ErlingSmørgrav 
    des at des.no
       
    Sun Jan 25 04:36:24 PST 2004
    
    
  
Jeff Roberson <jeff at FreeBSD.org> writes:
>   Log:
>    - Correct function names listed in KASSERTs.  These were copied from other
>      code and it was sloppy of me not to adjust these sooner.
suggestions based on my experience with KASSERTs:
1) don't include the function name in panic strings as the backtrace
   already provides that information (and more)
2) if you must include the function name, use %s() and __func__ to
   avoid getting it wrong.
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the cvs-all
mailing list