Skip to content

Commit 9820355

Browse files
idoschdavem330
authored andcommitted
mlxsw: core: Use correct EMAD transaction ID in debug message
'trans->tid' is only assigned later in the function, resulting in a zero transaction ID. Use 'tid' instead. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f6775a2 commit 9820355

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static int mlxsw_emad_reg_access(struct mlxsw_core *mlxsw_core,
667667
int err;
668668

669669
dev_dbg(mlxsw_core->bus_info->dev, "EMAD reg access (tid=%llx,reg_id=%x(%s),type=%s)\n",
670-
trans->tid, reg->id, mlxsw_reg_id_str(reg->id),
670+
tid, reg->id, mlxsw_reg_id_str(reg->id),
671671
mlxsw_core_reg_access_type_str(type));
672672

673673
skb = mlxsw_emad_alloc(mlxsw_core, reg->len);

0 commit comments

Comments
 (0)