]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
lm32_sys: increase test case name length limit
authorMichael Walle <michael@walle.cc>
Sun, 9 Dec 2012 23:00:24 +0000 (00:00 +0100)
committerMichael Walle <michael@walle.cc>
Tue, 4 Feb 2014 18:34:29 +0000 (19:34 +0100)
The new MMU tests use longer names.

Signed-off-by: Michael Walle <michael@walle.cc>
hw/misc/lm32_sys.c

index 9bdb78162f6844685c11e3635c2dd37c9001591e..16dc254f75d2e4e816080122f42a74822f35116f 100644 (file)
@@ -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;