]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Comment why TRACE() is not used directly 490/head
authorBen Kaduk <kaduk@mit.edu>
Sat, 23 Jul 2016 19:59:05 +0000 (14:59 -0500)
committerBen Kaduk <kaduk@mit.edu>
Mon, 25 Jul 2016 19:46:33 +0000 (14:46 -0500)
Instead, a new TRACE_* macro should be defined for each trace point, and
that macro used from the library code.

src/include/k5-trace.h

index 045f1026577c14e3aaa71dfd362151783fc3b2ae..c75e264e04f2c3a995a7d8c1f159733278ad2a76 100644 (file)
  * This header contains trace macro definitions, which map trace points within
  * the code to krb5int_trace() calls with descriptive text strings.
  *
+ * A new trace macro must be defined in this file for each new location to
+ * be traced; the TRACE() macro should never be used directly.  This keeps
+ * the tracing logic centralized in one place, to facilitate integration with
+ * alternate tracing backends such as DTrace.
+ *
  * Trace logging is intended to aid power users in diagnosing configuration
  * problems by showing what's going on behind the scenes of complex operations.
  * Although trace logging is sometimes useful to developers, it is not intended