From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B29A31FAF1 for ; Thu, 15 Dec 2022 20:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1671137576; bh=Q5TmI3HfOB0Ww2neiSbvlxdVCYfT2TIA7rDPz3LgHco=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wFvcn7UL0DTNi6dWqjWoOqJEplBLJNVi2B5QfZNn/sPoM34Wx2n2CBwawupAs+vxa WRRKJ/7OWWjabgZ+DUzxIKIZjnBzDxYZ7t5Rmww5MQLIqgsiUXvMMCh7UUyVIvG9HY a+f9tEdFgGA28HgRej9yZ77AmhjqwXtGM6kw8w+o= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH 04/19] httpd: avoid newline if not using bt: >= 1 Date: Thu, 15 Dec 2022 20:52:40 +0000 Message-Id: <20221215205255.27840-5-e@80x24.org> In-Reply-To: <20221215205255.27840-1-e@80x24.org> References: <20221215205255.27840-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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);