improve logging in elf

This commit is contained in:
Fabian 2022-11-07 23:37:17 -06:00
parent d254a6b7b6
commit 3e22884a4a

View file

@ -106,9 +106,8 @@ function read_elf(buffer)
{ {
for(let key of Object.keys(header)) for(let key of Object.keys(header))
{ {
dbg_log(key + ": 0x" + header[key].toString(16)); dbg_log(key + ": 0x" + (header[key].toString(16) >>> 0));
} }
dbg_log(header);
} }
console.assert(header.magic === ELF_MAGIC, "Bad magic"); console.assert(header.magic === ELF_MAGIC, "Bad magic");