From 84f3df89c92080b205f6235257b6d8cf28aea7bc Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 7 Dec 2008 15:49:36 -0600 Subject: [PATCH] Fix missing argument in SKR debug logging. The format string used in SKR debug logging calls for a pointer and two int values. However, only the two int values were provided, so the debug logs would be wrong if they were ever printed. Based on context, the format string probably wanted the SilcSKRKey. Add it. --- lib/silcskr/silcskr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/silcskr/silcskr.c b/lib/silcskr/silcskr.c index 327c6124..c9b4be0d 100644 --- a/lib/silcskr/silcskr.c +++ b/lib/silcskr/silcskr.c @@ -748,7 +748,7 @@ void silc_skr_ref_public_key(SilcSKR skr, SilcSKRKey key) SilcSKRKeyInternal k = (SilcSKRKeyInternal)key; silc_mutex_lock(skr->lock); - SILC_LOG_DEBUG(("SKR key %p ref %d -> %d", k->refcnt, k->refcnt + 1)); + SILC_LOG_DEBUG(("SKR key %p ref %d -> %d", k, k->refcnt, k->refcnt + 1)); k->refcnt++; silc_mutex_unlock(skr->lock); } @@ -761,7 +761,7 @@ void silc_skr_unref_public_key(SilcSKR skr, SilcSKRKey key) silc_mutex_lock(skr->lock); - SILC_LOG_DEBUG(("SKR key %p ref %d -> %d", k->refcnt, k->refcnt - 1)); + SILC_LOG_DEBUG(("SKR key %p ref %d -> %d", k, k->refcnt, k->refcnt - 1)); k->refcnt--; if (k->refcnt == 0) { -- 2.24.0