Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2192229rwb; Fri, 5 Aug 2022 15:22:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dVef7xqVyvGcbNCEkCpJt8UGkVglVg5w/yiC4cN55y0HCJiN2rvm+d6HI1voh2bd4BnT2 X-Received: by 2002:a17:906:9749:b0:730:c005:5d59 with SMTP id o9-20020a170906974900b00730c0055d59mr6387075ejy.419.1659738120791; Fri, 05 Aug 2022 15:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659738120; cv=none; d=google.com; s=arc-20160816; b=JBwtZG9psBGS1XlVdkxbuV3k1Ol8aumHk9Izh6KtsAXhZ3Kaga+1RdWBYc14cb15dc YLH75edHrCap7eu+inHRpmC8HpiQ4chHgLMFcgCVBFJdtLD6R7xlUXBeSswUNhBwkILe /JE18ghoKdDi2sMc3oRGwuTFl1NxXFANZeryA+fUhCWgIs3zBN2g2XNmmZGMrgmSObU8 FlXRbuW81F+MzUAy934L12aumKTedNKRvNTliKfLgBay0H2KuTOYPbypuJCqL35DUD35 YX0qtiEcOSYQaXbzh7h5R4a7UVXOsTMNfquvFMfpViWQj2k/LS5a0KIOXhb2GpQJozsx EOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J+XMFiNX/q3LQYLLDUo59QkX1sLIyVqPUPsR4ifBrfo=; b=arINa8RcJdHf3tRllUvW10RCErth5bdXS5MKeObbtdcC/4j09ITVIOHhxlsaGfk3Yc JbC7meKiDNgMh4Ylz+3vHpBDYHJ/U4E6rgR+rP9WO8ZBA+sOzKQRfETBXZIfxGkOB0QQ O4srmnqx6OKJx7x4yhHXXzHe2asygpk1RKo2EF4CfL4sjYOVrUpYCZS4PZUdToVHj/E+ 4NM3zW+wHwenSgloyOcrvFXXp3UYp1r1BvqVfrMU45OJueQMaQTBTNntAzj+jS1KTFdT VD5pb0+9ogLWx6wH8MRqiuxYzfkmfIDGw7OHSEH48Ho8jLNe9+4HWYeo9gcHaA5QFZkz o2xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a3pE4rSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs27-20020a1709073e9b00b00711efd98320si1157499ejc.241.2022.08.05.15.21.34; Fri, 05 Aug 2022 15:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a3pE4rSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241265AbiHEVyo (ORCPT + 99 others); Fri, 5 Aug 2022 17:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241596AbiHEVy3 (ORCPT ); Fri, 5 Aug 2022 17:54:29 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 336ECF5A2; Fri, 5 Aug 2022 14:54:28 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id h16so1968649ilc.10; Fri, 05 Aug 2022 14:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=J+XMFiNX/q3LQYLLDUo59QkX1sLIyVqPUPsR4ifBrfo=; b=a3pE4rSuZD6ro/cAPZ0Z73WjsYUoQsEAbwyUOAqkxPwqOML8IMtCRzyMMjE6ZCJJCH 4scGqqJcV3JdotbBSmD47jk7lpKPscKlF7ejCkueKNDZc62M5x6RByzui6UXS/yrhEB/ Ma9VANyVI7k0Kt+62fIgtMkwlry0TtsgYx+JzzmG7zLU3gOw8u6v8GVHIOxS78S6ySuJ yQedjpXdXviU2c0CtSvX8JSMMrEMC2fuCmCJ3zZs+/tekpoFMtppdOD1KBHt6WoE6wSl TqyEco90VmD806y4HavPugyYKbr4gmKWihAk17UiplBB9FsIctcOWsPeNGNljMqQiUYj Ds8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=J+XMFiNX/q3LQYLLDUo59QkX1sLIyVqPUPsR4ifBrfo=; b=Fc0IFMLov8QIDw1xX5oomr5tmj7N+oeldsF0DiTgeJCUxbe7is+j2hL78nQgLzu2MT fxR7bLUVP6aFA6Itr+lQx8D0eQj9ahmwwfCI+/+RNEQ+B16+uHjd7Kl14jhpJRqDoMy8 vLmJdSA1+p4zoAr/IYwga8hBPA/IIrBaebBdU+3KqkXjZ529axgIQYYeDfw2r+cB8AlE EkjWEf7MlAJ3wUfXY8T1UwIeQ5r9iIXgIaRwixI1GCIkvfSjVQQoFwjgZWCkEPUKhotZ Au/XoZZPi2mw0bMhscwF1lOvzG1X9uV6ooXj4ScXN5Zvb/N1wB4nCpjTjKCWHe881cTJ QhSg== X-Gm-Message-State: ACgBeo05NS5b1bRMl4a0eB3UZSZKEBLl3bMIZheldWS+TzpVbBxrOk4S 97cdM9XOa2zEXgGN4ypTQ0T6l0eu84kgjw== X-Received: by 2002:a05:6e02:180a:b0:2de:20c8:572 with SMTP id a10-20020a056e02180a00b002de20c80572mr3819308ilv.213.1659736467233; Fri, 05 Aug 2022 14:54:27 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id e12-20020a056602044c00b0067c09fd0b53sm1765532iov.21.2022.08.05.14.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 14:54:26 -0700 (PDT) From: Jim Cromie To: linux-kernel@vger.kernel.org, jbaron@akamai.com, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: daniel.vetter@ffwll.ch, seanpaul@chromium.org, robdclark@gmail.com, Jim Cromie Subject: [PATCH v5 06/33] dyndbg: use ESCAPE_SPACE for cat control Date: Fri, 5 Aug 2022 15:53:28 -0600 Message-Id: <20220805215355.3509287-7-jim.cromie@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805215355.3509287-1-jim.cromie@gmail.com> References: <20220805215355.3509287-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org `cat control` currently does octal escape, so '\n' becomes "\012". Change this to display as "\n" instead, which reads much cleaner. :#> head -n7 /proc/dynamic_debug/control # filename:lineno [module]function flags format init/main.c:1179 [main]initcall_blacklist =_ "blacklisting initcall %s\n" init/main.c:1218 [main]initcall_blacklisted =_ "initcall %s blacklisted\n" init/main.c:1424 [main]run_init_process =_ " with arguments:\n" init/main.c:1426 [main]run_init_process =_ " %s\n" init/main.c:1427 [main]run_init_process =_ " with environment:\n" init/main.c:1429 [main]run_init_process =_ " %s\n" Signed-off-by: Jim Cromie Acked-by: Jason Baron --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 8ff11977b8bd..e5cbe603000c 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -900,7 +900,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p) trim_prefix(dp->filename), dp->lineno, iter->table->mod_name, dp->function, ddebug_describe_flags(dp->flags, &flags)); - seq_escape(m, dp->format, "\t\r\n\""); + seq_escape_str(m, dp->format, ESCAPE_SPACE, "\t\r\n\""); seq_puts(m, "\"\n"); return 0; -- 2.37.1