From patchwork Thu Nov 9 15:11:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 163415 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp501357vqs; Thu, 9 Nov 2023 07:12:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBQXvYQC25DIYZ7pzOpbPSfAYwR7LrnspDA3dbEHuZ9Lz/b3P4Dafzw2pyVUtd77UIyPZE X-Received: by 2002:a05:6808:309a:b0:3b2:f192:5a6b with SMTP id bl26-20020a056808309a00b003b2f1925a6bmr2272213oib.16.1699542739940; Thu, 09 Nov 2023 07:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699542739; cv=none; d=google.com; s=arc-20160816; b=LdNUcbVSJJl1xjjvI41Pj8ivdsXN23kMSz1wMXOtgWIlbtL66nC3h9RJZ37dbvFeJY sf/ffuaN/0SGirFrqsekfnEVKBKpEtvzuwnnzDSBvIrO5yeLBrwmupVs1HQYTeI8bUbt 9LYxAkvVjBbZGDwuZC20JYfkkJpGzelsxY2KS6vtgUWhM3Wa6HCXldP4kLG09kmdbDlW OZPbITS1BY2rWPRuzHvayX5hutQCAiMLkFV+DoDdy+tsuHUNZreteulpGPUN3elwc30H EjgvRCphlwurKn68M+GXd/lcxzC+ivOdEpFJhwa/lIGIPK7Xw/Bma6vlDjU3ukO/I7DB 6p4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=8pQ0K76qmBVGT/CgHVEv31iCSF419asbcRbCGaHbMy8=; fh=bwsiIJU4ZySHCYgdbJrawkDYkx7XsqbTjYxIEnch01E=; b=dHFSjL8epA28WbK79SmvV6FEigXZA7FXEEWXRjD/mkMKdBq5gQrKUW8S29YjSb2ZN6 2GhsIxmuaDfDtrZGDNbRZ47Mkjhz1Yl2cnclAeE7UO+RR5d76zF6lr5fwBSl5Q1xdlEp z2lWW6Q+CA6jE2Kt7q0hLGaH7OW/MUHgOudQWu4hvby8eTkdyugDLGF7A2oY5Ftzo/h9 XjNz8AJAAx9NmR8c1Fh1hegm4zPLHWQbdvG6Ewheit2PzE2tDpvCEiwdeP4SwY2Foe3p db/BrRIMP8kkGZM44aVOIKG9q3y1NNDEvQ+PiXToYxhEeY6PxZ6hNQjEN76zv0iGhP5L M7mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HXmPIsyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id eq22-20020a056808449600b003ae55ec2576si6569316oib.220.2023.11.09.07.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 07:12:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=HXmPIsyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7D4998249F63; Thu, 9 Nov 2023 07:12:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234571AbjKIPL1 (ORCPT + 31 others); Thu, 9 Nov 2023 10:11:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343540AbjKIPLZ (ORCPT ); Thu, 9 Nov 2023 10:11:25 -0500 Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F4D835B3 for ; Thu, 9 Nov 2023 07:11:23 -0800 (PST) Received: by mail-wm1-x349.google.com with SMTP id 5b1f17b1804b1-4084001846eso6370155e9.1 for ; Thu, 09 Nov 2023 07:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1699542681; x=1700147481; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=8pQ0K76qmBVGT/CgHVEv31iCSF419asbcRbCGaHbMy8=; b=HXmPIsyVZBhk7YQKAHvlH8qBF/pDdTeZNrusuKkTatH2PftRoNSSpbSpEQ0ijwxrTr /mg9CGrq6NOVwePi8gFMqBi7nmEXGE61ECDEbinCHIwW7NT3WIFV5LDNTxkmCd6t4aDx 4VV1ARGOXREYXjvHag8m/qjY1Uyruggi7NlOe/4kVPReAGmcwdAKBmfDML8GEQsJymQ1 2Oxxl7h5RAXOUvaat6HkAH7DqetYLAnYzH46NNcIke/tGgjwJmxMC5O3IzXn5hXs6sKo UOLNgjm1JxPUPJUwq0JmVgy0fbWMrRqWZygHanCHmkS8WkvZH5D6CpAYnup3J8TXJIUu pINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699542681; x=1700147481; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8pQ0K76qmBVGT/CgHVEv31iCSF419asbcRbCGaHbMy8=; b=f1/0hRJDocHZ8YKciezKnHRtsLLAh6PaI4OWS+4MWiTtwkrgL4/SRcdFQqYW4iaEvd KBf++ChgtgBwsSkxHcofRAYZFIZuW/gRAJkzq0HgVhdx00znAAN2g/o0HRJZVWlOzHkE o56XMqpZl9/omfA7hxc5pZcmSSghEbO6BYkR1voGdSfZL6M3fv6fcGZDhtU5wLucd75c N88hlsz+LknKqSOwER2rrd2U2Do/p4b+/LERALmKFFZRM3UyfGAQBuOQApCjsS4ZP5tT KBw/ao4zCEO4ANBzXvmwO6v8VRk0ySsNjQx6qYqJ4PTSwRMJKBXdJufSfDXZMbB6Wbdo LB/w== X-Gm-Message-State: AOJu0YzWkXgrburXIe0LMEGMy6FoNOLMueMpYXUZJo3qH+mLjz8uY9qN Qg83djkFP4HbhVxbdmlcWrKY02ZeFOk= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:c5e3:4628:e996:9f03]) (user=glider job=sendgmr) by 2002:a5d:6990:0:b0:32f:7cfa:a4e5 with SMTP id g16-20020a5d6990000000b0032f7cfaa4e5mr83401wru.3.1699542681487; Thu, 09 Nov 2023 07:11:21 -0800 (PST) Date: Thu, 9 Nov 2023 16:11:06 +0100 In-Reply-To: <20231109151106.2385155-1-glider@google.com> Mime-Version: 1.0 References: <20231109151106.2385155-1-glider@google.com> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Message-ID: <20231109151106.2385155-3-glider@google.com> Subject: [PATCH v12 3/3] lib/test_bitmap: use pr_info() for non-error messages From: Alexander Potapenko To: glider@google.com, catalin.marinas@arm.com, will@kernel.org, pcc@google.com, andreyknvl@gmail.com, andriy.shevchenko@linux.intel.com, aleksander.lobakin@intel.com, linux@rasmusvillemoes.dk, yury.norov@gmail.com, alexandru.elisei@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eugenis@google.com, syednwaris@gmail.com, william.gray@linaro.org 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 (fry.vger.email [0.0.0.0]); Thu, 09 Nov 2023 07:12:13 -0800 (PST) X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782099727638475709 X-GMAIL-MSGID: 1782099727638475709 pr_err() messages may be treated as errors by some log readers, so let us only use them for test failures. For non-error messages, replace them with pr_info(). Suggested-by: Alexander Lobakin Signed-off-by: Alexander Potapenko --- lib/test_bitmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 2761edbc83d73..8a8af5d28432e 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -484,7 +484,7 @@ static void __init test_bitmap_parselist(void) } if (ptest.flags & PARSE_TIME) - pr_err("parselist: %d: input is '%s' OK, Time: %llu\n", + pr_info("parselist: %d: input is '%s' OK, Time: %llu\n", i, ptest.in, time); #undef ptest @@ -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_info("bitmap_print_to_pagebuf: input is '%s', Time: %llu\n", buf, time); out: kfree(buf); kfree(bmap); @@ -601,7 +601,7 @@ static void __init test_bitmap_parse(void) } if (test.flags & PARSE_TIME) - pr_err("parse: %d: input is '%s' OK, Time: %llu\n", + pr_info("parse: %d: input is '%s' OK, Time: %llu\n", i, test.in, time); } } @@ -1357,7 +1357,7 @@ static void __init test_bitmap_read_perf(void) } } time = ktime_get() - time; - pr_err("Time spent in %s:\t%llu\n", __func__, time); + pr_info("Time spent in %s:\t%llu\n", __func__, time); } static void __init test_bitmap_write_perf(void) @@ -1379,7 +1379,7 @@ static void __init test_bitmap_write_perf(void) } } time = ktime_get() - time; - pr_err("Time spent in %s:\t%llu\n", __func__, time); + pr_info("Time spent in %s:\t%llu\n", __func__, time); } #undef TEST_BIT_LEN