From 3cdb0ada5aecbcbe940bacf577c02c41bc65c629 Mon Sep 17 00:00:00 2001 From: Ravi Nanavati Date: Fri, 29 Sep 2006 22:53:24 +0000 Subject: [PATCH] hp_slash_fix 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c index 0ee53f3..1878d90 100644 --- a/rts/ProfHeap.c +++ b/rts/ProfHeap.c @@ -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) { -- 1.7.10.4