summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-04 12:24:56 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-04 12:24:56 +0100
commit4594f66e54ba79fd619bf8f9cce0b6a6c54ca2e5 (patch)
tree7de377830c2c13c9e57f68b29e4c93d5a586db13
parenta7383a87eb614f520275c9831587cdbab350dbbb (diff)
downloadgnutls-4594f66e54ba79fd619bf8f9cce0b6a6c54ca2e5.tar.gz
corrent error print in win32
-rw-r--r--lib/nettle/rnd-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/rnd-common.c b/lib/nettle/rnd-common.c
index 736c96940e..24737433ed 100644
--- a/lib/nettle/rnd-common.c
+++ b/lib/nettle/rnd-common.c
@@ -77,8 +77,8 @@ static HCRYPTPROV device_fd = 0;
int _rnd_get_system_entropy_win32(void* rnd, size_t size)
{
if (!CryptGenRandom(device_fd, (DWORD) size, rnd)) {
- _gnutls_debug_log("Error in CryptGenRandom: %s\n",
- GetLastError());
+ _gnutls_debug_log("Error in CryptGenRandom: %d\n",
+ (int)GetLastError());
return GNUTLS_E_RANDOM_DEVICE_ERROR;
}