From fb9374be05108422a9662217e727b940ef896bf6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 9 Dec 2008 21:56:50 +0000 Subject: Fix copious amounts of debugging messages. Add concept of warning messages. --- module/p11-capi.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'module/p11-capi.h') diff --git a/module/p11-capi.h b/module/p11-capi.h index e522bfa..d672b69 100644 --- a/module/p11-capi.h +++ b/module/p11-capi.h @@ -66,9 +66,15 @@ typedef struct _P11cSession P11cSession; * Module helper and logging functions. */ -#define DBG(args) p11c_debug args +#if DBG_OUTPUT +#define DBG(args) p11c_log args +#else +#define DBG(args) +#endif + +#define WARN(args) p11c_log args -void p11c_debug (const char* msg, ...); +void p11c_log (const char* msg, ...); /* * Protect global data with these. -- cgit v1.2.3