Clear warnings/errors within BN_CTX_DEBUG code sections
authorRichard Levitte <levitte@openssl.org>
Tue, 16 Dec 2014 00:38:39 +0000 (01:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 17 Dec 2014 13:17:54 +0000 (14:17 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/bn/bn_ctx.c

index 3f2256f67575aeca46c110ba8416bfba1daa60af..90aa3aeb9f7517c90dbe7b395475d32e839b0bd2 100644 (file)
@@ -158,7 +158,7 @@ static void ctxdbg(BN_CTX *ctx)
        unsigned int bnidx = 0, fpidx = 0;
        BN_POOL_ITEM *item = ctx->pool.head;
        BN_STACK *stack = &ctx->stack;
-       fprintf(stderr,"(%08x): ", (unsigned int)ctx);
+       fprintf(stderr,"(%16p): ", ctx);
        while(bnidx < ctx->used)
                {
                fprintf(stderr,"%03x ", item->vals[bnidx++ % BN_CTX_POOL_SIZE].dmax);