common: fix a few debug infra-related comments. v0.0.53
authorKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 4 Jun 2014 12:41:36 +0000 (15:41 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 4 Jun 2014 12:44:14 +0000 (15:44 +0300)
src/common/debug.c
src/common/debug.h

index 9b74b7b..9f5e091 100644 (file)
@@ -44,7 +44,7 @@
 
 #define WILDCARD  "*"
 
-int mrp_debug_stamp = 0;     /* debug config stamp */
+int mrp_debug_stamp = 0;                    /* debug config stamp */
 
 static int         debug_enabled;           /* debug messages enabled */
 static mrp_htbl_t *rules_on;                /* enabling rules */
index 953406a..aaf730b 100644 (file)
@@ -53,7 +53,7 @@ MRP_CDECL_BEGIN
     } while (0)
 
 
-/** mrp_debug varian with explicitly passed site info. */
+/** mrp_debug variant with explicitly passed site info. */
 #define mrp_debug_at(_file, _line, _func, fmt, args...)        do {       \
         static int __site_stamp = -1;                                     \
         static int __site_enabled;                                        \
@@ -68,6 +68,7 @@ MRP_CDECL_BEGIN
     } while (0)
 
 
+/** Run a block of code if the invoking debug site is enabled. */
 #define mrp_debug_code(...)         do {                                  \
         static int __site_stamp = -1;                                     \
         static int __site_enabled;                                        \