[MOD] Fixed print format (#685)

This commit is contained in:
jgromes 2023-03-01 21:50:40 +01:00
parent 00998b5185
commit 3c92219488

View file

@ -717,7 +717,7 @@ void Module::hexdump(uint8_t* data, size_t len, uint32_t offset, uint8_t width,
size_t rem_len = len;
for(int32_t i = 0; i < len; i+=16) {
char str[80];
sprintf(str, "%07lx ", i+offset);
sprintf(str, "%07" PRIx32 " ", i+offset);
size_t line_len = 16;
if(rem_len < line_len) {
line_len = rem_len;