On Thu, Apr 29, 2021 at 02:06:04PM +0300, Dan Carpenter wrote: > This code was using IS_ERR() instead of PTR_ERR() so it prints 1 instead > of the correct error code. Even better would be to use %pe which prints > out the name of the error, as in "ENOMEM", "EINVAL" etc. > > Fixes: 25cb31768042 ("net/mlx5: E-Switch, Improve error messages in term table creation") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > v2: Use %pe instead of %ld. > > Leon says this goes through netdev instead of the RDMA tree. Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>