size_t being the same as unsigned long is true on Linux, but this
produces a warning when cross-compiling for Windows. Replace %lu with
the correct format specifier %zu.
Change-Id: Id8524d9c36ea913d557d3f43f1f62acc4186b4eb
Signed-off-by: Max Fillinger <maximilian.fillinger@sentyron.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Razvan Cojocaru <razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1843
Message-Id: <
20260813145122.14606-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg38303.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
if (cert_blob_size > max_cert_size)
{
- msg(M_WARN, "PKCS#11: Certificate too large: %lu bytes, maximum is %lu", cert_blob_size, max_cert_size);
+ msg(M_WARN, "PKCS#11: Certificate too large: %zu bytes, maximum is %zu", cert_blob_size, max_cert_size);
goto cleanup;
}