hp_slash_fix
authorRavi Nanavati <ravi@bluespec.com>
Fri, 29 Sep 2006 22:53:24 +0000 (22:53 +0000)
committerRavi Nanavati <ravi@bluespec.com>
Fri, 29 Sep 2006 22:53:24 +0000 (22:53 +0000)
Fix output of cost-centre stacks so that the slashes appear in the correct place

Please include this patch in the 6.6 branch as well as HEAD

rts/ProfHeap.c

index 0ee53f3..1878d90 100644 (file)
@@ -541,10 +541,10 @@ fprint_ccs(FILE *fp, CostCentreStack *ccs, nat max_length)
            p += buf_append(p, ccs->cc->module, buf_end);
            p += buf_append(p, ".CAF", buf_end);
        } else {
+           p += buf_append(p, ccs->cc->label, buf_end);
            if (ccs->prevStack != NULL && ccs->prevStack != CCS_MAIN) {
                p += buf_append(p, "/", buf_end);
            }
-           p += buf_append(p, ccs->cc->label, buf_end);
        }
        
        if (p >= buf_end) {