Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1880296rdh; Tue, 26 Sep 2023 06:25:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+1/kMtMCmw0DzCdGolZ3Gqtz+F1/PKwEn5yRrjLk27WTRksz6jn4RdJiW58MsIN6JBuZo X-Received: by 2002:a05:6a00:14c6:b0:68f:b5cb:ced0 with SMTP id w6-20020a056a0014c600b0068fb5cbced0mr11849194pfu.34.1695734718553; Tue, 26 Sep 2023 06:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695734718; cv=none; d=google.com; s=arc-20160816; b=uFWnLuzSFJjB7cWROfp/Tez9/CvNMebo26h8qUXoVhUf2CJDOJcCbjRzjXX4lSmzd9 xIK2nFv1E5H0qKFJqIZGKY6FBfLrWt1HIPADXcdy3M3kds49J89kt6r1UGcC6KvZI1SI HwKwDEOhOoRHUSRj71bFjIAshy30dvwLDbGDN2RR4gAII3pJWxw8RDJIDl6FMRSXc540 lKpwAmj0HldqR4hoyaWrSiTppHkBAPi6IHQ7eVXozElRg2cJhfLzgEhMQ+AztXsuNktP FwPIXaXm0CixV8srNRTmjm4DzEFZhCLZv0+W15rGlNaIzrmt52RnrX67rKARNTDBXpWG vqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DqkfgDw2PK66GKZCRSP4E6cVu5Z/Fe5/oZEh2SKe/Uk=; fh=L7qLqAVYKJLLU215hvBcaKojBhNx9nENHPUck68dFjE=; b=xgpab4CLhL7PJWQqJffCyRlNFBIObMlPNKNXr1SB8LHPwLQ4u+YxnBeYZ3OnVfkntv 55aRFIwljAhVxo3VAeZcwsUf+z9CXFCBU+T5k4TlcTEnQ4ruIel1g2HASKI3rU8qzY8F +Zf2PIdPCuS0mJhkEWmI/sLy5+bVYTOg2nzdRr/ckpUilvvcqYinOV2CzvClo0j1yKq6 ggvgy9LIEZavbN4Aiq6VrCbBPTm+aBQxTG2MmVfWjCUPCkruPuZYChHT06ya1f8enw49 F8KagEEwJvCNhn9f/bFSHpdz9yc1Xwc0wqBJvNv/4zEHfc28todW/AleGzg+kn7QAiel J7PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kay06Yvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k33-20020a634b61000000b00578f23273a3si12946625pgl.738.2023.09.26.06.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kay06Yvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DEAEA8209691; Tue, 26 Sep 2023 03:39:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234406AbjIZKjY (ORCPT + 99 others); Tue, 26 Sep 2023 06:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234411AbjIZKjW (ORCPT ); Tue, 26 Sep 2023 06:39:22 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC1E511D; Tue, 26 Sep 2023 03:39:13 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1c328b53aeaso74503735ad.2; Tue, 26 Sep 2023 03:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695724753; x=1696329553; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DqkfgDw2PK66GKZCRSP4E6cVu5Z/Fe5/oZEh2SKe/Uk=; b=Kay06YvlT37L2ZOGBJpObMtyMfp/X+iBIAfwnEgXWqmViJPTluWv5JZE0MBwj2+i7E OfFI+F9vbOb5YW4fJIYrMSq2SCHw5jpr6rsKMxVT+d92w2PGgAbkgbvWz6rEpI0dkj5q J2j6gNm/hKPcdGo6QAS36UVjR+1sgblhd5PJaxWd/thxsDLLEvA6WVb0+FVkTTcn1Ow6 Ar01Czp8MYK6ueaQfMGmalTbT4zmjsDMKYgDMWmEJWt0i2nLgLHUxDvAX8/7h/L//G4d GDsvT4yLozZ6oeUpeHDMBsti+yJYEpu7Sp0oN40xmXG1Ip/aUPs42jCzgDtE7wTJgSct ooCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695724753; x=1696329553; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DqkfgDw2PK66GKZCRSP4E6cVu5Z/Fe5/oZEh2SKe/Uk=; b=H/eiZ4oUqqL9N8xM6oYK9LYvtC3KKJlgtGzG9z7uBGzF8KWQJowKMBwrGB58d6UPsg 6OQXE7GR5hCJQVZWXTdx2TZ3yZ3M1MhRINkHAmkZPsnlaSjF+ujljfbjcXjeF+AZ5Jsm 5bkMJJu2uULK8TmKIRFLuqPPLwIXOBGiH0ZFNoewzWZMn1wHSGQIzORAq5Pth3/Ij7We 9vKv8WXV2UromFyO4ByGfESD8G++o0k3PetrhnQhO8F7dwrPqgUzwWnHzE756Cii3/25 sETXh58NPGLsV+HPjjbYkABZSEHS8gHYe8sVz/OMMR5Ph+2VcHiFeCQIvfPsnu/rS8Vn 06eg== X-Gm-Message-State: AOJu0Ywsrd7Wj1b/tlZ8QcnYlsxQLqgHhNzwAi9UAgR0ZVVCuD+2G68t 8H486otzjInPBgttmkckdQ8= X-Received: by 2002:a17:902:82c4:b0:1c5:f4c7:b4d5 with SMTP id u4-20020a17090282c400b001c5f4c7b4d5mr10698300plz.34.1695724753178; Tue, 26 Sep 2023 03:39:13 -0700 (PDT) Received: from sol (14-201-140-18.tpgi.com.au. [14.201.140.18]) by smtp.gmail.com with ESMTPSA id u5-20020a170902b28500b001c62b9a51a4sm1702079plr.239.2023.09.26.03.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 03:39:12 -0700 (PDT) Date: Tue, 26 Sep 2023 18:39:05 +0800 From: Kent Gibson To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , Yury Norov , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Bartosz Golaszewski , Andy Shevchenko , Rasmus Villemoes , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v1 1/5] lib/test_bitmap: Excape space symbols when printing input string Message-ID: References: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> <20230926052007.3917389-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 03:39:29 -0700 (PDT) On Tue, Sep 26, 2023 at 06:35:40PM +0800, Kent Gibson wrote: > On Tue, Sep 26, 2023 at 08:20:03AM +0300, Andy Shevchenko wrote: > > test_bitmap_printlist() prints the input string which contains > > a new line character. Instead of stripping it, escape that kind > > of characters, so developer will see the actual input string > And "Excape" -> "Escape" - didn't notice until my reply was sending. Cheers, Kent. > Grammar nit: > > "that kind of characters" -> "those kinds of characters" or "that kind > of character" or "such characters" or ... > > > that has been used. Without this change the new line splits > > the string to two, and the first one is not guaranteed to be > > followed by the first part immediatelly. > > immediately > > And the second "first" should be "second"?? > > "the second part is not guaranteed to immediately follow the first" is > clearer (and hopefully what you mean), IMHO. > > Cheers, > Kent. > > > > > Signed-off-by: Andy Shevchenko > > --- > > lib/test_bitmap.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c > > index f2ea9f30c7c5..1f2dc7fef17f 100644 > > --- a/lib/test_bitmap.c > > +++ b/lib/test_bitmap.c > > @@ -523,7 +523,7 @@ static void __init test_bitmap_printlist(void) > > goto out; > > } > > > > - pr_err("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); > > + pr_err("bitmap_print_to_pagebuf: input is '%*pEs', Time: %llu\n", ret, buf, time); > > out: > > kfree(buf); > > kfree(bmap); > > -- > > 2.40.0.1.gaa8946217a0b > >