From: Kp Date: Sun, 7 Dec 2008 21:49:36 +0000 (-0600) Subject: Fix missing argument in SKR debug logging. X-Git-Tag: silc.toolkit.1.1.9~6^2~5 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=84f3df89c92080b205f6235257b6d8cf28aea7bc 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. --- 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) {