From bcfb84e59bf53e4666e08d56ddff8e55bd38d462 Mon Sep 17 00:00:00 2001 From: flobernd Date: Tue, 29 Nov 2016 11:49:38 +0100 Subject: [PATCH] Minor refactorings --- examples/FormatterHooks.c | 2 +- include/Zydis/Formatter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/FormatterHooks.c b/examples/FormatterHooks.c index 4405d2a..f862018 100644 --- a/examples/FormatterHooks.c +++ b/examples/FormatterHooks.c @@ -202,7 +202,7 @@ void disassembleBuffer(uint8_t* data, size_t length, bool installHooks) char buffer[256]; while (ZYDIS_SUCCESS(ZydisDecoderDecodeNextInstruction(&decoder, &info))) { - printf("%016" PRIx64 " ", info.instrAddress); + printf("%016" PRIX64 " ", info.instrAddress); if (info.instrFlags & ZYDIS_INSTRFLAG_ERROR_MASK) { printf(" db %02x\n", info.data[0]); diff --git a/include/Zydis/Formatter.h b/include/Zydis/Formatter.h index 91161a2..ca09a53 100644 --- a/include/Zydis/Formatter.h +++ b/include/Zydis/Formatter.h @@ -87,7 +87,7 @@ typedef uint8_t ZydisFormatterAddressFormat; /** * @brief Values that represent address-formats. */ -enum ZydisFormatterAddressFormat_ +enum ZydisFormatterAddressFormats { /** * @brief Currently defaults to @c ZYDIS_FORMATTER_ADDR_ABSOLUTE.