]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mlxsw: core: Use correct EMAD transaction ID in debug message
authorIdo Schimmel <idosch@mellanox.com>
Wed, 2 Aug 2017 07:52:10 +0000 (09:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 23:58:49 +0000 (16:58 -0700)
'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>
drivers/net/ethernet/mellanox/mlxsw/core.c

index affe84eb4bff5717e5ddba4835395a8a8989f8ca..9d5e7cf288bef2b1eb603843c7b57945918aeb72 100644 (file)
@@ -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);