From a6aa479b611ac5cad82404e232e2209bddd5d9b3 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 22 Jul 2015 16:00:30 +0900 Subject: [PATCH] refine pic_dump_irep format --- extlib/benz/include/picrin/opcode.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extlib/benz/include/picrin/opcode.h b/extlib/benz/include/picrin/opcode.h index e3eb00a7..9bff2cdd 100644 --- a/extlib/benz/include/picrin/opcode.h +++ b/extlib/benz/include/picrin/opcode.h @@ -60,7 +60,6 @@ enum pic_opcode { PIC_INLINE void pic_dump_code(pic_code c) { - printf("[%2d] ", c.insn); switch (c.insn) { case OP_NOP: puts("OP_NOP"); @@ -187,7 +186,7 @@ pic_dump_irep(struct pic_irep *irep) printf("## irep %p\n", (void *)irep); printf("[clen = %zd, argc = %d, localc = %d, capturec = %d]\n", irep->clen, irep->argc, irep->localc, irep->capturec); for (i = 0; i < irep->clen; ++i) { - printf("%02x ", i); + printf("%02x: ", i); pic_dump_code(irep->code[i]); }