svn commit: r291067 - head/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Nov 19 10:10:53 UTC 2015
Author: hselasky
Date: Thu Nov 19 10:10:52 2015
New Revision: 291067
URL: https://svnweb.freebsd.org/changeset/base/291067
Log:
Print cable name, if cable type is not recognized.
Differential Revision: https://reviews.freebsd.org/D4180
Submitted by: Mark Bloch <markb at mellanox.com>
Sponsored by: Mellanox Technologies
MFC after: 3 days
Modified:
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c Thu Nov 19 10:01:50 2015 (r291066)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c Thu Nov 19 10:10:52 2015 (r291067)
@@ -251,8 +251,9 @@ mlx5e_get_eeprom_info(struct mlx5e_priv
eeprom->len = MLX5E_ETH_MODULE_SFF_8472_LEN;
break;
default:
- if_printf(priv->ifp, "%s:%d: Not recognized cable type = 0x%x\n",
- __func__, __LINE__, data & MLX5_EEPROM_IDENTIFIER_BYTE_MASK);
+ if_printf(priv->ifp, "%s:%d: Not recognized cable type = 0x%x(%s)\n",
+ __func__, __LINE__, data & MLX5_EEPROM_IDENTIFIER_BYTE_MASK,
+ sff_8024_id[data & MLX5_EEPROM_IDENTIFIER_BYTE_MASK]);
return (EINVAL);
}
return (0);
More information about the svn-src-head
mailing list