Fix missing argument in SKR debug logging.
authorKp <kp@valhallalegends.com>
Sun, 7 Dec 2008 21:49:36 +0000 (15:49 -0600)
committerKp <kp@valhallalegends.com>
Sat, 13 Dec 2008 19:57:37 +0000 (13:57 -0600)
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

index 327c61244b6f48b9e30850e01609c2a3f60b44bd..c9b4be0d17415714a84a052cbec2926a24b2a2c7 100644 (file)
@@ -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) {