aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-12-10 00:00:24 +0100
committerMichael Walle <michael@walle.cc>2014-02-04 19:34:29 +0100
commite67b3ca53a891413a33c45495ff20c2728d69722 (patch)
treebd1e109127f10b8e9793154a7ffa57315e21ea16 /hw/misc
parent9396b05a5a35d344dc5eaed6fb0dff96c49d5f50 (diff)
downloadqemu-e67b3ca53a891413a33c45495ff20c2728d69722.zip
qemu-e67b3ca53a891413a33c45495ff20c2728d69722.tar.gz
qemu-e67b3ca53a891413a33c45495ff20c2728d69722.tar.bz2
lm32_sys: increase test case name length limit
The new MMU tests use longer names. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/lm32_sys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c
index 9bdb781..16dc254 100644
--- a/hw/misc/lm32_sys.c
+++ b/hw/misc/lm32_sys.c
@@ -42,7 +42,7 @@ enum {
R_MAX
};
-#define MAX_TESTNAME_LEN 16
+#define MAX_TESTNAME_LEN 32
#define TYPE_LM32_SYS "lm32-sys"
#define LM32_SYS(obj) OBJECT_CHECK(LM32SysState, (obj), TYPE_LM32_SYS)
@@ -80,7 +80,8 @@ static void sys_write(void *opaque, hwaddr addr,
case R_PASSFAIL:
s->regs[addr] = value;
testname = (char *)s->testname;
- qemu_log("TC %-16s %s\n", testname, (value) ? "FAILED" : "OK");
+ qemu_log("TC %-*s %s\n", MAX_TESTNAME_LEN,
+ testname, (value) ? "FAILED" : "OK");
break;
case R_TESTNAME:
s->regs[addr] = value;