Skip to content

Commit a2e6915

Browse files
this time
1 parent 3a24dc3 commit a2e6915

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code/logic/elf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ void fossil_media_elf_dump(const fossil_media_elf_t *elf, FILE *out) {
583583
return;
584584
}
585585

586-
fprintf(out, "ELF Section Table (%zu sections):\n", count);
586+
fprintf(out, "ELF Section Table (%llu sections):\n", (unsigned long long)count);
587587
for (size_t i = 0; i < count; ++i) {
588588
const char *name = NULL;
589589
const uint8_t *ptr = NULL;
@@ -597,10 +597,10 @@ void fossil_media_elf_dump(const fossil_media_elf_t *elf, FILE *out) {
597597
name = "<NULL>";
598598
}
599599

600-
fprintf(out, " [%02zu] %-20s size=%zu%s\n",
601-
i,
600+
fprintf(out, " [%02llu] %-20s size=%llu%s\n",
601+
(unsigned long long)i,
602602
(rc_name == FOSSIL_MEDIA_ELF_OK ? name : "<invalid>"),
603-
(rc_data == FOSSIL_MEDIA_ELF_OK ? len : 0),
603+
(unsigned long long)(rc_data == FOSSIL_MEDIA_ELF_OK ? len : 0),
604604
(rc_data == FOSSIL_MEDIA_ELF_OK ? "" : " (no data)"));
605605
}
606606
}

0 commit comments

Comments
 (0)