Re: [PATCH v4 13/17] PCI: epf-test: Simplify transfers result print

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux