]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrent error print in win32
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:24:56 +0000 (12:24 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:24:56 +0000 (12:24 +0100)
lib/nettle/rnd-common.c

index 736c96940e11f505093d2537301f84d58aaad67b..24737433ed3a0202f1e732c038563e38511148fa 100644 (file)
@@ -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;
        }