From b418601942bc177f85f236c01622f76aaf1797cb Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 20 May 2020 10:23:03 +0200 Subject: [PATCH] pkcs11-spy: Dump slot id for C_WaitForSlotEvent --- src/pkcs11/pkcs11-spy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkcs11/pkcs11-spy.c b/src/pkcs11/pkcs11-spy.c index df71e483..07b02fd9 100644 --- a/src/pkcs11/pkcs11-spy.c +++ b/src/pkcs11/pkcs11-spy.c @@ -1469,6 +1469,9 @@ C_WaitForSlotEvent(CK_FLAGS flags, CK_SLOT_ID_PTR pSlot, CK_VOID_PTR pRserved) enter("C_WaitForSlotEvent"); spy_dump_ulong_in("flags", flags); + if (pSlot != NULL) { + spy_dump_ulong_in("pSlot", *pSlot); + } rv = po->C_WaitForSlotEvent(flags, pSlot, pRserved); return retne(rv); }