Re: [PATCH net-next] net/mlx5: Fix some error messages

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

 



On Sun, 25 Apr 2021 09:39:29 +0300 Leon Romanovsky wrote:
> > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
> > index a81ece94f599..95f5c1a27718 100644
> > --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
> > +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c
> > @@ -83,16 +83,16 @@ mlx5_eswitch_termtbl_create(struct mlx5_core_dev *dev,
> >  	ft_attr.autogroup.max_num_groups = 1;
> >  	tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr);
> >  	if (IS_ERR(tt->termtbl)) {
> > -		esw_warn(dev, "Failed to create termination table (error %d)\n",
> > -			 IS_ERR(tt->termtbl));
> > +		esw_warn(dev, "Failed to create termination table (error %ld)\n",
> > +			 PTR_ERR(tt->termtbl));

If these are error pointers - perhaps %pe?



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux