Use BN_ULONG format.
authorBen Laurie <ben@links.org>
Sun, 19 Apr 2015 13:34:05 +0000 (14:34 +0100)
committerBen Laurie <ben@links.org>
Fri, 1 May 2015 16:46:17 +0000 (17:46 +0100)
Reviewed-by: Andy Polyakov
test/bntest.c

index 7aaefc58e5b1d2ef565aec2060872d96948ac1bf..1ce6db18f35f3bdbeed13ec102a9f2fe0922eb0c 100644 (file)
@@ -1799,8 +1799,8 @@ int test_probable_prime_coprime(BIO *bp, BN_CTX *ctx)
 
         for (j = 0; j < 5; j++) {
             if (BN_mod_word(r, primes[j]) == 0) {
-                BIO_printf(bp, "Number generated is not coprime to %ld:\n",
-                           primes[j]);
+                BIO_printf(bp, "Number generated is not coprime to "
+                          BN_DEC_FMT1 ":\n", primes[j]);
                 BN_print_fp(stdout, r);
                 BIO_printf(bp, "\n");
                 goto err;