Skip to contentSkip to conversation

mlxsw: core: Use correct EMAD transaction ID in debug message

PATCH Applied Jiri Pirko 2 participants 2 messages Aug 2, 2017

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

PATCH 1/1 mlxsw: core: Use correct EMAD transaction ID in debug message

From: Ido Schimmel <[email protected]>

'trans->tid' is only assigned later in the function, resulting in a zero transaction ID. Use 'tid' instead.

---
 drivers/net/ethernet/mellanox/mlxsw/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/core.c +1 -1
index affe84e..9d5e7cf 100644
@@ -667,7 +667,7 @@ static int mlxsw_emad_reg_access(struct mlxsw_core *mlxsw_core,
 	int err;
 
 	dev_dbg(mlxsw_core->bus_info->dev, "EMAD reg access (tid=%llx,reg_id=%x(%s),type=%s)\n",
-		trans->tid, reg->id, mlxsw_reg_id_str(reg->id),
+		tid, reg->id, mlxsw_reg_id_str(reg->id),
 		mlxsw_core_reg_access_type_str(type));
 
 	skb = mlxsw_emad_alloc(mlxsw_core, reg->len);
Signature · 1 line
2.9.3