diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-03-04 12:24:56 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-03-04 12:24:56 +0100 |
commit | 4594f66e54ba79fd619bf8f9cce0b6a6c54ca2e5 (patch) | |
tree | 7de377830c2c13c9e57f68b29e4c93d5a586db13 | |
parent | a7383a87eb614f520275c9831587cdbab350dbbb (diff) | |
download | gnutls-4594f66e54ba79fd619bf8f9cce0b6a6c54ca2e5.tar.gz |
corrent error print in win32
-rw-r--r-- | lib/nettle/rnd-common.c | 4 |
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; } |