diff options
author | Eric Wong <e@80x24.org> | 2022-12-15 20:52:40 +0000 |
---|---|---|
committer | Eric Wong <mwrap-perl@80x24.org> | 2022-12-16 09:27:39 +0000 |
commit | 4c4fc4891e88b29243b0ea80277c5f8edef531f5 (patch) | |
tree | aba076eb58a7ffbf848cc94c97061ec75d1523f7 | |
parent | c11cc92ba9c211a33d7ecfb013cfdd5773968e78 (diff) | |
download | mwrap-4c4fc4891e88b29243b0ea80277c5f8edef531f5.tar.gz |
httpd: avoid newline if not using bt: >= 1
No need to hog up screen space if we're not doing multi-level traces.
-rw-r--r-- | mwrap_httpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mwrap_httpd.h b/mwrap_httpd.h index 63dfcfa..1ef21e0 100644 --- a/mwrap_httpd.h +++ b/mwrap_httpd.h @@ -527,9 +527,9 @@ static enum mw_qev each_at(struct mw_h1 *h1, struct mw_h1req *h1r) if (!fp) return h1_close(h1); FPUTS("<html><head><title>", fp); write_html(fp, lb.ptr, lb.len); - FPUTS("</title></head><body><p>live allocations at", fp); + FPUTS("</title></head><body><p>live allocations at:", fp); if (bt_req_depth) FPUTS("<br/>", fp); - else fputc('\n', fp); + else fputc(' ', fp); write_html(fp, lb.ptr, lb.len); show_age(fp); |