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-session.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'module/p11-capi-session.h') diff --git a/module/p11-capi-session.h b/module/p11-capi-session.h index 8f84026..cb02ee5 100644 --- a/module/p11-capi-session.h +++ b/module/p11-capi-session.h @@ -69,8 +69,13 @@ typedef struct _P11cSession P11cSession; /* Debug print something related to a session */ -#define DBGS(sess, msg) \ - p11c_debug("S%d: %s", (sess) ? (sess)->id : 0, (msg)) +#if DBG_OUTPUT +#define DBGS(sess, msg) p11c_log("S%d: %s", (sess) ? (sess)->id : 0, (msg)) +#else +#define DBGS(sess, msg) +#endif + +#define WARNS(sess, msg) p11c_log("S%d: %s", (sess) ? (sess)->id : 0, (msg)) /* Create a session */ CK_RV p11c_session_create (CK_SLOT_ID slot, P11cSession** ret); -- cgit v1.2.3