summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe/GrantTable.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/XenBusDxe/GrantTable.c')
-rw-r--r--OvmfPkg/XenBusDxe/GrantTable.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/OvmfPkg/XenBusDxe/GrantTable.c b/OvmfPkg/XenBusDxe/GrantTable.c
index 6e47483f13..90dec26ab0 100644
--- a/OvmfPkg/XenBusDxe/GrantTable.c
+++ b/OvmfPkg/XenBusDxe/GrantTable.c
@@ -162,7 +162,9 @@ XenGrantTableInit (
Parameters.gpfn = (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT) + Index;
ReturnCode = XenHypercallMemoryOp (XENMEM_add_to_physmap, &Parameters);
if (ReturnCode != 0) {
- DEBUG ((EFI_D_ERROR, "Xen GrantTable, add_to_physmap hypercall error: %d\n", ReturnCode));
+ DEBUG ((EFI_D_ERROR,
+ "Xen GrantTable, add_to_physmap hypercall error: %Ld\n",
+ (INT64)ReturnCode));
}
}
}
@@ -182,10 +184,13 @@ XenGrantTableDeinit (
for (Index = NR_GRANT_FRAMES - 1; Index >= 0; Index--) {
Parameters.domid = DOMID_SELF;
Parameters.gpfn = (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT) + Index;
- DEBUG ((EFI_D_INFO, "Xen GrantTable, removing %X\n", Parameters.gpfn));
+ DEBUG ((EFI_D_INFO, "Xen GrantTable, removing %Lx\n",
+ (UINT64)Parameters.gpfn));
ReturnCode = XenHypercallMemoryOp (XENMEM_remove_from_physmap, &Parameters);
if (ReturnCode != 0) {
- DEBUG ((EFI_D_ERROR, "Xen GrantTable, remove_from_physmap hypercall error: %d\n", ReturnCode));
+ DEBUG ((EFI_D_ERROR,
+ "Xen GrantTable, remove_from_physmap hypercall error: %Ld\n",
+ (INT64)ReturnCode));
}
}
GrantTable = NULL;