From 4c4fc4891e88b29243b0ea80277c5f8edef531f5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 15 Dec 2022 20:52:40 +0000 Subject: httpd: avoid newline if not using bt: >= 1 No need to hog up screen space if we're not doing multi-level traces. --- mwrap_httpd.h | 4 ++-- 1 file 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("", fp); write_html(fp, lb.ptr, lb.len); - FPUTS("

live allocations at", fp); + FPUTS("

live allocations at:", fp); if (bt_req_depth) FPUTS("
", fp); - else fputc('\n', fp); + else fputc(' ', fp); write_html(fp, lb.ptr, lb.len); show_age(fp); -- cgit v1.2.3-24-ge0c7