From adee4e5ab42db9039a45b0b1481c750ef4093226 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Wed, 4 Jun 2014 15:41:36 +0300 Subject: [PATCH] common: fix a few debug infra-related comments. --- src/common/debug.c | 2 +- src/common/debug.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/debug.c b/src/common/debug.c index 9b74b7b..9f5e091 100644 --- a/src/common/debug.c +++ b/src/common/debug.c @@ -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 */ diff --git a/src/common/debug.h b/src/common/debug.h index 953406a..aaf730b 100644 --- a/src/common/debug.h +++ b/src/common/debug.h @@ -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; \ -- 2.7.4