From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B04B9C433ED for ; Wed, 7 Apr 2021 17:12:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 84B0E611C0 for ; Wed, 7 Apr 2021 17:12:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354681AbhDGRMd (ORCPT ); Wed, 7 Apr 2021 13:12:33 -0400 Received: from mga04.intel.com ([192.55.52.120]:28524 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235711AbhDGRMa (ORCPT ); Wed, 7 Apr 2021 13:12:30 -0400 IronPort-SDR: uw2iSvQo9hZjp1TTqCh4lOUF75Yd+qYrFxVtheE62p/LK2Ws9ZllxZLAMc49IrohEOhMwb2WEo 1712bGtAGp3Q== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="191196299" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="191196299" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 10:12:21 -0700 IronPort-SDR: rObUCVsnK0wZAWxKAigIfSe2X5gjQjofnzQxF1w2NbOThugQZHJZI5P4OZIQsdqYxktPIUzHiB 8IxKtWpBYtyA== X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="421790852" Received: from otcwcpicx3.sc.intel.com ([172.25.55.73]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 10:12:20 -0700 Date: Wed, 7 Apr 2021 17:12:14 +0000 From: Fenghua Yu To: Shuah Khan Cc: Shuah Khan , Ravi V Shankar , linux-kselftest , linux-kernel Subject: Re: [PATCH] selftests/resctrl: Change a few printed messages Message-ID: References: <20210406005242.3248706-1-fenghua.yu@intel.com> <67062f6c-d09a-f8e0-4d22-49c4452d0552@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67062f6c-d09a-f8e0-4d22-49c4452d0552@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Shuah, On Wed, Apr 07, 2021 at 08:33:23AM -0600, Shuah Khan wrote: > On 4/5/21 6:52 PM, Fenghua Yu wrote: > > - ksft_print_msg("%s cache miss rate within %d%%\n", > > - ret ? "Fail:" : "Pass:", max_diff_percent); > > + ksft_print_msg("Check cache miss rate within %d%%\n", max_diff_percent); > > You need %s and pass in the ret ? "Fail:" : "Pass:" result for the > message to read correctly. Should I keep the ":" after "Pass"/"Fail"? > > I am seeing: > > # Check kernel support for resctrl filesystem > > It should say the following: > > # Fail Check kernel support for resctrl filesystem i.e. should the printed messages be like the following? # Fail: Check kernel support for resctrl filesystem or # Pass: Check kernel support for resctrl filesystem Thanks. -Fenghua