Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1816430rdh; Tue, 26 Sep 2023 04:40:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJP4o7CUFhi850+PZCLTd+9B7Q7h7pTELodoXO7urKxpsENA6TkJDv/+fQJdl/RXpuVyqs X-Received: by 2002:a05:6a20:2591:b0:15d:b407:b0a0 with SMTP id k17-20020a056a20259100b0015db407b0a0mr3361373pzd.26.1695728452159; Tue, 26 Sep 2023 04:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695728452; cv=none; d=google.com; s=arc-20160816; b=bFS1m6FC9yDKXYz8QaVl98nblLOG/u2Ng6sRe5eVGHJNC8iSeDo2+RMP1wU6hVyGzR 5HKKryAqCRQqbq5gszbVetVVWi9qjWz6E9PVhvJOcJqHC1P0JolfIEe3oiH9Gu3O29+J YhfffQvILhG1Kvw3TiCK1pocOqJnUwFEqRsZbHtEWIOkbTwp1kX80yNqFkIByo2kIFhS omOS++VF3CO4gs2XEDV4IojAkHTUHvzPVxoZscZ42Kt2udr2U5r+R/wYDAfsKl86N/wH d+QsOStHb01rJ0vhdZqROwQA4Alko8F0uJfhjSQ7frJiQzl/laO6WC7/8Rx4F7I41hCN vyNQ== 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=M60sRqt4xNv5ErJ+j1DQt+h8t34Lsw9KsA1hVQluwtU=; fh=vW1oNT0lvWbI8AMX2u/BZGKXD0nTZmrv2xM94BgUfog=; b=XTtQJVb7Mqm2C8ZSXHwHNEFABMsPMBfK9EuCk/2i1yh6rM5ehrxkNCM0K/XQ2Wk6Wt xs7651Ly/5W75DjuuQVOPXnEVculRbLJ3rG7eJIo0zYyBMHMQuZhVG23dTYnH+CUJmtB PwM9mYbbVb3YDmgwxwJS6PhSKQPCunIZ1L6Zap4paFLmirpo2z+cQsRmX8GsHpHcMDJV NQEhjphnzywTZjIF+/4YSF2JqEkDuufdqAYZzzRd5d+PKv0WXzeBz1V6txnSco1bP9iw STMn8U27VoV9PaJ1zLn82zG+FDDHBIduEjJP1QcPbx1LOdMrXy+6zKwtCdiGilH3qM1L jyLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="BCDAY/L/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f9-20020a056a00238900b00690dbd360basi13217050pfc.152.2023.09.26.04.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="BCDAY/L/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4902680765D4; Mon, 25 Sep 2023 22:21:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232486AbjIZFUj (ORCPT + 99 others); Tue, 26 Sep 2023 01:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231549AbjIZFUb (ORCPT ); Tue, 26 Sep 2023 01:20:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D4C10E; Mon, 25 Sep 2023 22:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695705625; x=1727241625; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HobNRGqJUHXjsUELG2MflqrUmiEdsI1lLhoWfVAN/p8=; b=BCDAY/L/WYVWBl8pngiAdFcz/U1dMmcpzRk+hXQib+spNZq2mjhAFVmK VtP+Hy5vUYcBFV88c4byiVj8uA1F7XvwYtFXeICrcecnxM+JovEJNUrUs mW2qFfLZ5SStTyycXL6TqvEC4Nqgu1xLXWGHtdTU5Dq+dLDqS6qTJymUf vQmMnURUUVRxdzP3spGlVxilEIRt3Obd48z4egEgd81h72qgDGDeMbg4O SYBrWKuRj/LYLwMRa5BEIf5sWlosmW0Kl8DEZ2nbw7eDXorZy0+Wfvo29 N8mjY6cdprFeCAdAQpE52B83WPeISDZA+APCNb/YyK0PwYrLGww65HKwv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="360865684" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="360865684" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 22:20:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="748689667" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="748689667" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 25 Sep 2023 22:20:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id DE9E387; Tue, 26 Sep 2023 08:20:18 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Yury Norov , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Bartosz Golaszewski , Andy Shevchenko , Rasmus Villemoes , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH v1 1/5] lib/test_bitmap: Excape space symbols when printing input string Date: Tue, 26 Sep 2023 08:20:03 +0300 Message-Id: <20230926052007.3917389-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> References: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 22:21:17 -0700 (PDT) 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 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. 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