Two digits is not wide enough.
authorBen Laurie <ben@openssl.org>
Sun, 14 Jun 2009 10:23:29 +0000 (10:23 +0000)
committerBen Laurie <ben@openssl.org>
Sun, 14 Jun 2009 10:23:29 +0000 (10:23 +0000)
crypto/bn/bn_ctx.c

index b3452f1a91e31081e18667e25c49790b5b5a876a..3f2256f67575aeca46c110ba8416bfba1daa60af 100644 (file)
@@ -161,7 +161,7 @@ static void ctxdbg(BN_CTX *ctx)
        fprintf(stderr,"(%08x): ", (unsigned int)ctx);
        while(bnidx < ctx->used)
                {
-               fprintf(stderr,"%02x ", item->vals[bnidx++ % BN_CTX_POOL_SIZE].dmax);
+               fprintf(stderr,"%03x ", item->vals[bnidx++ % BN_CTX_POOL_SIZE].dmax);
                if(!(bnidx % BN_CTX_POOL_SIZE))
                        item = item->next;
                }
@@ -171,8 +171,8 @@ static void ctxdbg(BN_CTX *ctx)
        while(fpidx < stack->depth)
                {
                while(bnidx++ < stack->indexes[fpidx])
-                       fprintf(stderr,"   ");
-               fprintf(stderr,"^^ ");
+                       fprintf(stderr,"    ");
+               fprintf(stderr,"^^^ ");
                bnidx++;
                fpidx++;
                }