Improved readability of debug output.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Thu, 22 Nov 2012 09:37:28 +0000 (10:37 +0100)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 23 Nov 2012 13:47:42 +0000 (14:47 +0100)
ir/opt/combo.c

index 93a74cf..a86f37c 100644 (file)
@@ -439,10 +439,13 @@ static void dump_all_partitions(const environment_t *env)
 static void dump_split_list(const partition_t *list)
 {
        const partition_t *p;
+       char               split = ' ';
 
        DB((dbg, LEVEL_2, "Split by %s produced = {\n", what_reason));
-       for (p = list; p != NULL; p = p->split_next)
-               DB((dbg, LEVEL_2, "part%u, ", p->nr));
+       for (p = list; p != NULL; p = p->split_next) {
+               DB((dbg, LEVEL_2, "%c part%u", split, p->nr));
+               split = ',';
+       }
        DB((dbg, LEVEL_2, "\n}\n"));
 }  /* dump_split_list */