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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84533C77B71 for ; Fri, 14 Apr 2023 16:17:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjDNQRN (ORCPT ); Fri, 14 Apr 2023 12:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDNQRM (ORCPT ); Fri, 14 Apr 2023 12:17:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EE81CA for ; Fri, 14 Apr 2023 09:17:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE06864901 for ; Fri, 14 Apr 2023 16:17:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16284C433EF; Fri, 14 Apr 2023 16:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681489030; bh=EPqed3WD54+nkojq22/wiKyatqiQsaDtlNVRCIdIBNM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Pm+VtlYWxYnA7fzcAM1QF4A0CL/FF1z0J7lzjWFsStcIJQ+KDIWNCdPz1bJ6Wan3+ zoHmnNoHP9N3SmsNTF34S3JpKaUgFYUSn3IDgh5BiONkcTmZnWgF06Lp2j+XPU6A+M miXed46PzJWo3+oN0G6/U9HDeCqMZ+asIyuf57sdJCjiC3PPA4rIP3ZL1FKaOcXij2 9g2d9UfMKCZ2jBSC9YU50s7QsCaKTqx0I7OdF/tzwN6o6P2dIc36cxSLFkeaiftt+M jZTW6ac5BNIZYULII5JI/skTgDVT9tbnbCIEMr3HxcW8IAHuw5JwplJHWmsk5yO2AL K1DBgagu8v++w== Date: Fri, 14 Apr 2023 11:17:08 -0500 From: Bjorn Helgaas To: Damien Le Moal Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Rick Wertenbroek , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Kishon Vijay Abraham I , Arnd Bergmann , Greg Kroah-Hartman Subject: Re: [PATCH v4 13/17] PCI: epf-test: Simplify transfers result print Message-ID: <20230414161708.GA198332@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330085357.2653599-14-damien.lemoal@opensource.wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, Mar 30, 2023 at 05:53:53PM +0900, Damien Le Moal wrote: > In pci_epf_test_print_rate(), instead of open coding a reduction loop to > allow for a division by a 32-bits ns value, simply use div64_u64() to > calculate the transfer rate. To match the printed unit of KB/s, this > calculation divides the rate by 1000 instead of 1024 (that would be > KiB/s unit). > > The format of the results printed by pci_epf_test_print_rate() is also > changed to be more compact without the double new line. dev_info() is > used instead of pr_info(). "Change the format ... Use dev_info() instead of ..." I know I'm a little OCD about this. More detail: https://cbea.ms/git-commit/#imperative