diff --git a/fsw/src/mm_dump.c b/fsw/src/mm_dump.c index 0bba042..cf0654b 100644 --- a/fsw/src/mm_dump.c +++ b/fsw/src/mm_dump.c @@ -526,7 +526,7 @@ bool MM_DumpInEventCmd(const CFE_SB_Buffer_t *BufPtr) BytePtr = (uint8 *)DumpBuffer; for (i = 0; i < CmdPtr->NumOfBytes; i++) { - snprintf(TempString, MM_DUMPINEVENT_TEMP_CHARS, "0x%02X ", *BytePtr); + snprintf(TempString, MM_DUMPINEVENT_TEMP_CHARS, "%02X", *BytePtr); strncat(EventString, TempString, MM_DUMPINEVENT_TEMP_CHARS); BytePtr++; } diff --git a/fsw/src/mm_dump.h b/fsw/src/mm_dump.h index 80f357d..b0f982a 100644 --- a/fsw/src/mm_dump.h +++ b/fsw/src/mm_dump.h @@ -44,10 +44,10 @@ * * The event message format is: * Message head "Memory Dump: " 13 characters - * Message body "0xFF " 5 characters per dump byte + * Message body "FF" 2 characters per dump byte * Message tail "from address: 0xFFFFFFFF" 33 characters including NUL on 64-bit system */ -#define MM_MAX_DUMP_INEVENT_BYTES ((CFE_MISSION_EVS_MAX_MESSAGE_LENGTH - (13 + 33)) / 5) +#define MM_MAX_DUMP_INEVENT_BYTES ((CFE_MISSION_EVS_MAX_MESSAGE_LENGTH - (13 + 33)) / 2) /** * \brief Dump in an event scratch string size