diff --git a/src/pkcs11/pkcs11-object.c b/src/pkcs11/pkcs11-object.c index e7b6c56b..55f6c3dc 100644 --- a/src/pkcs11/pkcs11-object.c +++ b/src/pkcs11/pkcs11-object.c @@ -110,7 +110,8 @@ CK_RV C_GetAttributeValue(CK_SESSION_HANDLE hSession, /* the session's handle goto out; /* Debug printf */ - snprintf(object_name, sizeof(object_name), "Object %d", hObject); + snprintf(object_name, sizeof(object_name), "Object %lu", + (unsigned long) hObject); res_type = 0; for (i = 0; i < ulCount; i++) {