aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/vmm
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-11-24 11:35:43 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-11-24 11:35:43 +0000
commiteb6c9c128c9e61ca1db9d56d7cc6559fca79de42 (patch)
tree79b1e069c117a0a1945f0d558b3c6282dde1e8df /sys/amd64/vmm
parentdee38cdc2ab150a750230b91e5feeba8057ffdb6 (diff)
downloadsrc-eb6c9c128c9e61ca1db9d56d7cc6559fca79de42.tar.gz
src-eb6c9c128c9e61ca1db9d56d7cc6559fca79de42.zip
amd-vi: small improvements to event printing
Ensure that an opening bracket always has a matching closing one. Ensure that there is always a new-line at the end of a report line. Also, add a space before the printed event flag. Reviewed by: anish
Notes
Notes: svn path=/head/; revision=326156
Diffstat (limited to 'sys/amd64/vmm')
-rw-r--r--sys/amd64/vmm/amd/amdvi_hw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/vmm/amd/amdvi_hw.c b/sys/amd64/vmm/amd/amdvi_hw.c
index af4f56479d03..af6ebb51bbcb 100644
--- a/sys/amd64/vmm/amd/amdvi_hw.c
+++ b/sys/amd64/vmm/amd/amdvi_hw.c
@@ -582,7 +582,7 @@ amdvi_decode_evt_flag(uint16_t flag)
{
flag &= AMDVI_EVENT_FLAG_MASK;
- printf("0x%b]\n", flag,
+ printf(" 0x%b]\n", flag,
"\020"
"\001GN"
"\002NX"
@@ -692,7 +692,7 @@ amdvi_decode_evt(struct amdvi_event *evt)
case AMDVI_EVENT_ILLEGAL_CMD:
/* FALL THROUGH */
case AMDVI_EVENT_CMD_HW_ERROR:
- printf("\t[%s EVT]", (evt->opcode == AMDVI_EVENT_ILLEGAL_CMD) ?
+ printf("\t[%s EVT]\n", (evt->opcode == AMDVI_EVENT_ILLEGAL_CMD) ?
"ILLEGAL CMD" : "CMD HW ERR");
cmd = (struct amdvi_cmd *)PHYS_TO_DMAP(evt->addr);
printf("\tCMD opcode= 0x%x 0x%x 0x%x 0x%lx\n",
@@ -700,7 +700,7 @@ amdvi_decode_evt(struct amdvi_event *evt)
break;
case AMDVI_EVENT_IOTLB_TIMEOUT:
- printf("\t[IOTLB_INV_TIMEOUT devid:0x%x addr:0x%lx",
+ printf("\t[IOTLB_INV_TIMEOUT devid:0x%x addr:0x%lx]\n",
evt->devid, evt->addr);
break;
@@ -716,7 +716,7 @@ amdvi_decode_evt(struct amdvi_event *evt)
break;
default:
- printf("Unsupported AMD-Vi event:%d", evt->opcode);
+ printf("Unsupported AMD-Vi event:%d\n", evt->opcode);
}
}