Skip to content

Fix formatter type error #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bootrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ uint64_t bootrom_load(void)
* MMIO space (e.g. APIC, HPET, MSI).
*/
if (sbuf.st_size > MAX_BOOTROM_SIZE || sbuf.st_size < XHYVE_PAGE_SIZE) {
fprintf(stderr, "Invalid bootrom size %zd\n", sbuf.st_size);
fprintf(stderr, "Invalid bootrom size %lld\n", (long long)sbuf.st_size);
goto done;
}

if (sbuf.st_size & XHYVE_PAGE_MASK) {
fprintf(stderr, "Bootrom size %zd is not a multiple of the "
"page size\n", sbuf.st_size);
fprintf(stderr, "Bootrom size %lld is not a multiple of the "
"page size\n", (long long)sbuf.st_size);
goto done;
}

Expand All @@ -98,8 +98,8 @@ uint64_t bootrom_load(void)
ptr = vmm_mem_alloc(gpa, (size_t)sbuf.st_size);
if (!ptr) {
fprintf(stderr,
"Failed to allocate %zd bytes of memory for bootrom\n",
sbuf.st_size);
"Failed to allocate %lld bytes of memory for bootrom\n",
(long long)sbuf.st_size);
rv = -1;
goto done;
}
Expand Down