From fa4e683b015135d721fb0fc107dd4f53ffe8c9dc Mon Sep 17 00:00:00 2001 From: flobernd Date: Tue, 18 Jul 2017 20:02:32 +0200 Subject: [PATCH] Minor bugfixes --- tools/ZydisInfo.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/ZydisInfo.c b/tools/ZydisInfo.c index c07231d..c22f64d 100644 --- a/tools/ZydisInfo.c +++ b/tools/ZydisInfo.c @@ -74,8 +74,8 @@ void printOperands(ZydisDecodedInstruction* instruction) fputs("=======================================\n", stdout); fputs("## TYPE VISIBILITY ACTION ENCODING SIZE NELEM ELEMSZ", stdout); fputs(" ELEMTYPE VALUE\n", stdout); - fputs("== ========= ========== ====== ============ ==== ===== ======", stdout); - fputs(" ======== ===========================\n", stdout); + fputs("-- --------- ---------- ------ ------------ ---- ----- ------", stdout); + fputs(" -------- ---------------------------\n", stdout); uint8_t immId = 0; for (uint8_t i = 0; i < instruction->operandCount; ++i) { @@ -207,8 +207,8 @@ void printOperands(ZydisDecodedInstruction* instruction) } puts(""); } - fputs("== ========= ========== ====== ============ ==== ===== ======", stdout); - fputs(" ======== ===========================\n", stdout); + fputs("-- --------- ---------- ------ ------------ ---- ----- ------", stdout); + fputs(" -------- ---------------------------\n", stdout); } void printFlags(ZydisDecodedInstruction* instruction) @@ -253,15 +253,15 @@ void printFlags(ZydisDecodedInstruction* instruction) uint8_t c = 0; for (ZydisCPUFlag i = 0; i < ZYDIS_ARRAY_SIZE(instruction->flags); ++i) { + if (c == 8) + { + printf("\n "); + } if (instruction->flags[i].action != ZYDIS_CPUFLAG_ACTION_NONE) { ++c; printf("[%-4s: %s] ", flagNames[i], flagActions[instruction->flags[i].action]); } - if (c == 8) - { - printf("\n "); - } } puts(c ? "" : "none");