[dpdk-dev] [RFC PATCH 5/6] bus/mlx5_pci: register a PCI driver

Parav Pandit parav at mellanox.com
Thu Jun 18 11:47:22 CEST 2020



> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: Wednesday, June 17, 2020 1:49 PM
> To: Parav Pandit <parav at mellanox.com>; Gaëtan Rivet <grive at u256.net>
> Cc: dev at dpdk.org; ferruh.yigit at intel.com; Ori Kam <orika at mellanox.com>;
> Matan Azrad <matan at mellanox.com>
> Subject: Re: [dpdk-dev] [RFC PATCH 5/6] bus/mlx5_pci: register a PCI driver
> 
> 15/06/2020 23:46, Gaëtan Rivet:
> > On 10/06/20 17:17 +0000, Parav Pandit wrote:
> > > +		DRV_LOG(ERR, "Invalid mlx5 classes %s. Maybe typo in
> device"
> > > +			" class argument setting?", value);
> >
> > Error message should not be cut in half, it makes it difficult to grep.
> > If you differentiate between typo in name and invalid combo you could
> > directly warn the user about the proper error.
> >
> > (You can ignore the warning from checkpatch.sh about the long lines on
> > a string if there is one.)
> 
> The best is to cut the message after variable placeholder.
> Here you can cut at the end of the first sentence "%s. "
> 
o.k.


More information about the dev mailing list