mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-31 23:38:24 +00:00
io: tiny fix for error message
error message for "read" or "write" was incorrect. for developers, we just need print out direction & type value. Tracked-On: #875 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
bfcf546180
commit
2978c01f45
@ -312,9 +312,13 @@ emulate_io(struct vcpu *vcpu, struct io_request *io_req)
|
||||
status = acrn_insert_request_wait(vcpu, io_req);
|
||||
|
||||
if (status != 0) {
|
||||
/* here for both IO & MMIO, the direction, address,
|
||||
* size definition is same
|
||||
*/
|
||||
struct pio_request *pio_req = &io_req->reqs.pio;
|
||||
pr_fatal("Err:IO %s access to port 0x%04lx, size=%lu",
|
||||
(pio_req->direction != REQUEST_READ) ? "read" : "write",
|
||||
pr_fatal("%s Err: access dir %d, type %d, "
|
||||
"addr = 0x%llx, size=%lu", __func__,
|
||||
pio_req->direction, io_req->type,
|
||||
pio_req->address, pio_req->size);
|
||||
} else {
|
||||
status = IOREQ_PENDING;
|
||||
|
Loading…
Reference in New Issue
Block a user