mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
hv:refine 'uint64_t' string print format in comm moudle
Use "0x%lx" string to format 'uint64_t' type value, instead of "0x%llx". Tracked-On: #4020 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -500,7 +500,7 @@ hv_emulate_mmio(struct acrn_vcpu *vcpu, struct io_request *io_req)
|
||||
read_write = mmio_handler->read_write;
|
||||
handler_private_data = mmio_handler->handler_private_data;
|
||||
} else {
|
||||
pr_fatal("Err MMIO, address:0x%llx, size:%x", address, size);
|
||||
pr_fatal("Err MMIO, address:0x%lx, size:%x", address, size);
|
||||
status = -EIO;
|
||||
}
|
||||
break;
|
||||
@@ -578,8 +578,7 @@ emulate_io(struct acrn_vcpu *vcpu, struct io_request *io_req)
|
||||
*/
|
||||
struct pio_request *pio_req = &io_req->reqs.pio;
|
||||
|
||||
pr_fatal("%s Err: access dir %d, io_type %d, "
|
||||
"addr = 0x%llx, size=%lu", __func__,
|
||||
pr_fatal("%s Err: access dir %d, io_type %d, addr = 0x%lx, size=%lu", __func__,
|
||||
pio_req->direction, io_req->io_type,
|
||||
pio_req->address, pio_req->size);
|
||||
}
|
||||
@@ -636,7 +635,7 @@ static inline struct mem_io_node *find_match_mmio_node(struct acrn_vm *vm,
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
pr_fatal("%s, vm[%d] no match mmio region [0x%llx, 0x%llx] is found",
|
||||
pr_fatal("%s, vm[%d] no match mmio region [0x%lx, 0x%lx] is found",
|
||||
__func__, vm->vm_id, start, end);
|
||||
mmio_node = NULL;
|
||||
}
|
||||
|
@@ -185,7 +185,7 @@ static void vdev_pt_map_mem_vbar(struct pci_vdev *vdev, uint32_t idx)
|
||||
/* Remember the previously mapped MMIO vbar */
|
||||
vdev->bar_base_mapped[idx] = vbar_base;
|
||||
} else {
|
||||
pr_fatal("%s, %x:%x.%x set invalid bar[%d] address: 0x%llx\n", __func__,
|
||||
pr_fatal("%s, %x:%x.%x set invalid bar[%d] address: 0x%lx\n", __func__,
|
||||
vdev->bdf.bits.b, vdev->bdf.bits.d, vdev->bdf.bits.f, idx, vbar_base);
|
||||
}
|
||||
}
|
||||
|
@@ -271,7 +271,7 @@ static void vmsix_table_rw(const struct pci_vdev *vdev, struct mmio_request *mmi
|
||||
|
||||
}
|
||||
} else {
|
||||
pr_err("%s, invalid arguments %llx - %llx", __func__, mmio->value, mmio->address);
|
||||
pr_err("%s, invalid arguments %lx - %lx", __func__, mmio->value, mmio->address);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user