summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpu/kvm/base.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc
index e09c4b7f2..abb3451f6 100644
--- a/src/cpu/kvm/base.cc
+++ b/src/cpu/kvm/base.cc
@@ -816,14 +816,14 @@ BaseKvmCPU::getAndFormatOneReg(uint64_t id) const
ss << value; \
} break
-#define HANDLE_ARRAY(len) \
- case KVM_REG_SIZE_U ## len: { \
- uint8_t value[len / 8]; \
- getOneReg(id, value); \
- ss << "[" << value[0]; \
- for (int i = 1; i < len / 8; ++i) \
- ss << ", " << value[i]; \
- ss << "]"; \
+#define HANDLE_ARRAY(len) \
+ case KVM_REG_SIZE_U ## len: { \
+ uint8_t value[len / 8]; \
+ getOneReg(id, value); \
+ ccprintf(ss, "[0x%x", value[0]); \
+ for (int i = 1; i < len / 8; ++i) \
+ ccprintf(ss, ", 0x%x", value[i]); \
+ ccprintf(ss, "]"); \
} break
switch (id & KVM_REG_SIZE_MASK) {