From patchwork Wed Mar 27 15:23:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 13606805 X-Patchwork-Delegate: kuba@kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD33F137C34; Wed, 27 Mar 2024 15:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553093; cv=none; b=jhHDNP5maOORKBR5jUJx4gABuQubRTJqf8bQw4IqghR3vQ5Rn+oW5ZRj1fH6CPn2lgendZlPiVmub/8DlK9wVaxxh68BXoUW3DRfCqDwSmM5G7mdNvs5TXBVua3LOe82ymsWpqCqpeG9Q/UiUmDn4kjUTt730AmRPz1PqOhU1lE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553093; c=relaxed/simple; bh=MOQQd/EDW0Rx6coAPnU+ytX7qdeAXugbGRDLLXEZPZo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=scHRSKGjDmd3IRNzhVRjjVhrlF70UVeTPo9zBTl2fWlLSnh6XTTrYc42V7iWQpnugdi83GNXeCf77wZsEA5H1jJbVjyjra/U2VFC+jqa6xVdB1qHTk6Nq5rsz+75fwFRnHPlgf+Fv7dK1BlWAIh8LG6sK2CGQ9B/3T4zw+rMOVE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PnjSUpp8; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PnjSUpp8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711553091; x=1743089091; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MOQQd/EDW0Rx6coAPnU+ytX7qdeAXugbGRDLLXEZPZo=; b=PnjSUpp8GPIRJtkmJzyR87q6IOtlMtY8RQm8pQTJpEgJbt6fSVO60lv5 CzruY2vWY4QLrD6V8PC27ucmIYLHvZGXmUSX8p6cCj9mUh1aXrsszqe/b qndBuJXRl1MNoAFEg3wEiZAsgqF8p0uCtM+bxBzXDG/VTj848WEWV7pfy mNYOuXijXisMDDbkizrS0jRqr8dVmbOcxzrlbpUb/n6p0wFN0tcH2HGKr 5s0uMialSHL7L0YsTCy2eHKbfMOv5xp/a2LGTz/XnORVj9N89MXEuC4K6 jnsNgzqc46nXxjxKkv+u2FkSw6IcClNco3MPass3BJkhj6xFluGzmWFTg w==; X-CSE-ConnectionGUID: 7pi0RoSbQO2Nv+dKSM1UBg== X-CSE-MsgGUID: 6pzeI2bxTLK5lMlfy2Sz6g== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="6518107" X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="6518107" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 08:24:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="16414117" Received: from newjersey.igk.intel.com ([10.102.20.203]) by fmviesa008.fm.intel.com with ESMTP; 27 Mar 2024 08:24:43 -0700 From: Alexander Lobakin To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Alexander Lobakin , Yury Norov , Alexander Potapenko , nex.sw.ncis.osdt.itp.upstreaming@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v6 03/21] lib/test_bitmap: use pr_info() for non-error messages Date: Wed, 27 Mar 2024 16:23:40 +0100 Message-ID: <20240327152358.2368467-4-aleksander.lobakin@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327152358.2368467-1-aleksander.lobakin@intel.com> References: <20240327152358.2368467-1-aleksander.lobakin@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Alexander Potapenko 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 Acked-by: Yury Norov Signed-off-by: Yury Norov Signed-off-by: Alexander Lobakin --- 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 9198e93b7985..2870373d94d0 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -548,7 +548,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 @@ -587,7 +587,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); @@ -665,7 +665,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); } } @@ -1421,7 +1421,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) @@ -1443,7 +1443,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